diff options
author | xantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-07 05:40:31 +0000 |
---|---|---|
committer | xantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-07 05:40:31 +0000 |
commit | d5fd6f0996dabcb3b064c76081dccbf252aa3fe2 (patch) | |
tree | ad0fdec99b1f791c4d5143b03497de7e523a3572 /src/map/unit.c | |
parent | 9774eafce41dab69a7a31335007a90a1765dd4e5 (diff) | |
download | hercules-d5fd6f0996dabcb3b064c76081dccbf252aa3fe2.tar.gz hercules-d5fd6f0996dabcb3b064c76081dccbf252aa3fe2.tar.bz2 hercules-d5fd6f0996dabcb3b064c76081dccbf252aa3fe2.tar.xz hercules-d5fd6f0996dabcb3b064c76081dccbf252aa3fe2.zip |
Fixed a few Ranger-related skills (bugreport:5272)
- Added check to not allow attacks when mounted on a Warg
- Added check to only allow a certain amount of skills when mounted on a Warg
- Updated Warg Bite's chance rate of immobilization and duration
- Updated Arrowstorm and Aimed Bolt's skill ratio damage
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15663 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 56deae9c7..61046c4e0 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1496,8 +1496,8 @@ int unit_attack(struct block_list *src,int target_id,int continuous) npc_click(sd,(TBL_NPC*)target); // submitted by leinsirk10 [Celest] return 0; } - if( pc_is90overweight(sd) ) - { // overweight - stop attacking + if( pc_is90overweight(sd) || pc_isridingwug(sd) ) + { // overweight or mounted on warg - stop attacking unit_stop_attack(src); return 0; } |