mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Implemented SE_AddHatePct (Modifies +/- your total hate on NPC by percent)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user