Implemented SE_AddHatePct (Modifies +/- your total hate on NPC by percent)

This commit is contained in:
KayenEQ authored and Arthur Ice committed 2014-07-08 21:09:51 -07:00
1 parent 3253f7494e
commit 606bd86e3a
3 files changed
+10 -1

No files matched your search

+8
View File
@@ -2668,6 +2668,14 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
SlowMitigation(caster);
break;
case SE_AddHatePct:
{
if (IsNPC())
CastToNPC()->SetHate(caster, (CastToNPC()->GetHateAmount(caster) * (100 + spell.base[i]) / 100));
break;
}
// Handled Elsewhere
case SE_ImmuneFleeing:
case SE_NegateSpellEffect: