Implemented SE_Sanctuary - Places caster at bottom hate list,

effect fades if caster cast spell on targets other than self.
This commit is contained in:
KayenEQ
2014-07-02 08:42:18 -04:00
parent bd86e70766
commit ee6d7ae6ba
6 changed files with 53 additions and 2 deletions
+8
View File
@@ -2856,6 +2856,10 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses* ne
newbon->PetMeleeMitigation += effect_value;
break;
case SE_Sanctuary:
newbon->Sanctuary = true;
break;
//Special custom cases for loading effects on to NPC from 'npc_spels_effects' table
if (IsAISpellEffect) {
@@ -4330,6 +4334,10 @@ void Mob::NegateSpellsBonuses(uint16 spell_id)
itembonuses.FinishingBlowLvl[1] = effect_value;
break;
case SE_Sanctuary:
spellbonuses.Sanctuary = effect_value;
break;
}
}
}