diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-20 13:22:04 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-20 13:22:04 +0000 |
commit | d0f02711b3eb7e510169a0a66dcbf584f88912a5 (patch) | |
tree | 226e1579f0b95f92a160acb3a1ad0cfcefb8cc1b /src/map/unit.c | |
parent | c62973347b286bb2c1744611def30e3f4a76d4fa (diff) | |
download | hercules-d0f02711b3eb7e510169a0a66dcbf584f88912a5.tar.gz hercules-d0f02711b3eb7e510169a0a66dcbf584f88912a5.tar.bz2 hercules-d0f02711b3eb7e510169a0a66dcbf584f88912a5.tar.xz hercules-d0f02711b3eb7e510169a0a66dcbf584f88912a5.zip |
Fixed pneuma being displayed on land protector, bugreport:1715
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15187 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index cf370676c..6ca85aba1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1333,6 +1333,14 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, sh { if( skillnotok(skill_num, sd) || !skill_check_condition_castbegin(sd, skill_num, skill_lv) ) return 0; + /** + * "WHY IS IT HEREE": pneuma cannot be cancelled past this point, the client displays the animation even, + * if we cancel it from nodamage_id, so it has to be here for it to not display the animation. + **/ + if( skill_num == AL_PNEUMA && map_getcell(src->m, skill_x, skill_y, CELL_CHKLANDPROTECTOR) ) { + clif_skill_fail(sd,skill_num,0,0); + return 0; + } } if (!status_check_skilluse(src, NULL, skill_num, 0)) |