Fix /camp rest timer exploit

This commit is contained in:
Michael Cook (mackal)
2018-07-14 17:41:42 -04:00
parent d0956194af
commit 37ff8c830d
6 changed files with 27 additions and 47 deletions
+1 -3
View File
@@ -207,9 +207,7 @@ void HateList::AddEntToHateList(Mob *in_entity, int32 in_hate, int32 in_damage,
parse->EventNPC(EVENT_HATE_LIST, hate_owner->CastToNPC(), in_entity, "1", 0);
if (in_entity->IsClient()) {
if (hate_owner->CastToNPC()->IsRaidTarget())
in_entity->CastToClient()->SetEngagedRaidTarget(true);
in_entity->CastToClient()->IncrementAggroCount();
in_entity->CastToClient()->IncrementAggroCount(hate_owner->CastToNPC()->IsRaidTarget());
}
}
}