fixup! fix: call target selection with pos 0, use IsPlayer()

This commit is contained in:
Jelle Meeus
2024-05-05 11:52:24 +02:00
parent fdaaf8fd5a
commit 0260815fea

View File

@@ -81,7 +81,7 @@ struct WebTargetSelector
WebTargetSelector(Unit* maexxna) : _maexxna(maexxna) {}
bool operator()(Unit const* target) const
{
if (target->IsPlayer()) // never web nonplayers (pets, guardians, etc.)
if (!target->IsPlayer()) // never web nonplayers (pets, guardians, etc.)
return false;
if (_maexxna->GetVictim() == target) // never target tank
return false;