Merge pull request #3259 from Souler/pull
Traps and Basic Campfire ignoring unattackable flags.
This commit is contained in:
commit
f9fc12650b
1 file changed
+3
@@ -808,6 +808,9 @@ namespace Trinity
|
||||
if (u->GetTypeId() == TYPEID_UNIT && ((Creature*)u)->isTotem())
|
||||
return false;
|
||||
|
||||
if(!u->isTargetableForAttack(false))
|
||||
return false;
|
||||
|
||||
return i_obj->IsWithinDistInMap(u, i_range) && !i_funit->IsFriendlyTo(u);
|
||||
}
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user