Nopch fix 5 and should be last

This commit is contained in:
Shauren
2017-07-01 21:47:00 +02:00
committed by Ovahlord
parent 73e7270673
commit 6da0e00747

View File

@@ -113,9 +113,11 @@ class boss_void_reaver : public CreatureScript
{
std::vector<Unit*> target_list;
for (auto* ref : me->GetThreatManager().GetUnsortedThreatList())
if (Player* target = ref->GetVictim()->ToPlayer())
if (target->IsAlive() && !target->IsWithinDist(me, 18, false))
target_list.push_back(target);
{
Unit* target = ref->GetVictim();
if (target->GetTypeId() == TYPEID_PLAYER && target->IsAlive() && !target->IsWithinDist(me, 18, false))
target_list.push_back(target);
}
Unit* target = nullptr;
if (!target_list.empty())