Merge pull request #687 from noudess/master

Removed pets from Witness Heal Aggro.
This commit is contained in:
Michael Cook (mackal) 2018-01-09 18:11:28 -05:00 committed by GitHub
commit 279cd4660d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3257,7 +3257,7 @@ void EntityList::AddHealAggro(Mob *target, Mob *caster, uint16 hate)
for (auto &e : npc_list) {
auto &npc = e.second;
if (!npc->CheckAggro(target) || npc->IsFeared())
if (!npc->CheckAggro(target) || npc->IsFeared() || npc->IsPet())
continue;
if (zone->random.Roll(50)) // witness check -- place holder