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

This commit is contained in:
KayenEQ committed 2014-06-17 15:49:56 -04:00
1 parent da70a45d22
commit aa6af15cb5
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: