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

This commit is contained in:
KayenEQ committed 2014-06-17 16:08:19 -04:00
1 parent aa6af15cb5
commit a34a69b4c4
3 files changed
+11 -2

No files matched your search

+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?