Feign death will now break when hit by casted spells, consisted with live.

Implemented suport for AA/spell effect which provides a chance to avoid FD breaking from spells.
This commit is contained in:
KayenEQ
2015-10-12 18:51:41 -04:00
parent 4a61558de8
commit e2e8d444e9
8 changed files with 43 additions and 4 deletions
+5 -1
View File
@@ -3714,8 +3714,10 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob *spelltar, bool reflect, bool use_r
}
}
if (spelltar->IsClient())
if (spelltar->IsClient()){
spelltar->CastToClient()->BreakSneakWhenCastOn(this, true);
spelltar->CastToClient()->BreakFeignDeathWhenCastOn(true);
}
spelltar->CheckNumHitsRemaining(NumHit::IncomingSpells);
CheckNumHitsRemaining(NumHit::OutgoingSpells);
@@ -3724,8 +3726,10 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob *spelltar, bool reflect, bool use_r
return false;
}
}
if (spelltar->IsClient()){
spelltar->CastToClient()->BreakSneakWhenCastOn(this, false);
spelltar->CastToClient()->BreakFeignDeathWhenCastOn(false);
}
}
else