From d0f02711b3eb7e510169a0a66dcbf584f88912a5 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Tue, 20 Dec 2011 13:22:04 +0000 Subject: 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 --- src/map/unit.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map/unit.c') 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)) -- cgit v1.2.3-70-g09d2