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
+10 -2
View File
@@ -1457,6 +1457,11 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
newbon->NoBreakAESneak = base1;
break;
case SE_FeignedCastOnChance:
if (newbon->FeignedCastOnChance < base1)
newbon->FeignedCastOnChance = base1;
break;
// to do
case SE_PetDiscipline:
break;
@@ -1470,8 +1475,6 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
break;
case SE_SecondaryForte:
break;
case SE_FeignedCastOnChance:
break;
case SE_ExtendedShielding:
break;
case SE_ShieldDuration:
@@ -3198,6 +3201,11 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
if (new_bonus->NoBreakAESneak < effect_value)
new_bonus->NoBreakAESneak = effect_value;
break;
case SE_FeignedCastOnChance:
if (new_bonus->FeignedCastOnChance < effect_value)
new_bonus->FeignedCastOnChance = effect_value;
break;
//Special custom cases for loading effects on to NPC from 'npc_spels_effects' table
if (IsAISpellEffect) {