From f7cf35aaad2512e7f329954946aac5e2a24cdfb7 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 5 Jun 2006 15:05:49 +0000 Subject: - Corrected cloaking not ending on attack if you are near a wall. - Moved define cap_value to map.h as it's quite handy. - Updated pc_bonus to use cap_value on all status_data modifiers to prevent overflows/underflows. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6979 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index a2cd7cbfa..24958bb99 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2070,9 +2070,9 @@ struct Damage battle_calc_magic_attack( case MG_FIREWALL: if(mflag) //mflag has a value when it was checked against an undead in skill.c [Skotlex] ad.blewcount = 0; //No knockback - else + else ad.blewcount |= 0x10000; - ad.dmotion = 0; //No flinch animation. + ad.dmotion = 0; //No flinch animation. break; case WZ_STORMGUST: //Should knockback randomly. ad.blewcount|=0x40000; @@ -2769,7 +2769,7 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target, } } - if (sc && sc->data[SC_CLOAKING].timer != -1 && !sc->data[SC_CLOAKING].val4) + if (sc && sc->data[SC_CLOAKING].timer != -1 && !(sc->data[SC_CLOAKING].val4&1)) status_change_end(src,SC_CLOAKING,-1); //Check for counter attacks that block your attack. [Skotlex] -- cgit v1.2.3-70-g09d2