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

This commit is contained in:
KayenEQ
2014-06-17 15:49:56 -04:00
parent da70a45d22
commit aa6af15cb5
3 changed files with 10 additions and 1 deletions
+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: