Kayen: Implemented SE_AddHateOverTimePct (Modifies +/- your total hate on NPC by percent over time)

This commit is contained in:
KayenEQ
2014-06-17 16:08:19 -04:00
parent aa6af15cb5
commit a34a69b4c4
3 changed files with 11 additions and 2 deletions
+8
View File
@@ -3530,6 +3530,14 @@ void Mob::DoBuffTic(uint16 spell_id, int slot, uint32 ticsremaining, uint8 caste
}
}
case SE_AddHateOverTimePct:
{
if (IsNPC())
CastToNPC()->SetHate(caster, (CastToNPC()->GetHateAmount(caster) * (100 + spell.base[i]) / 100));
break;
}
default:
{
// do we need to do anyting here?