Core/Spells: Make GMs and vehicle riders not attackable by AOE again.
This commit is contained in:
@@ -706,6 +706,8 @@ namespace Trinity
|
||||
// can't be checked in SpellInfo::CheckTarget - needs more research
|
||||
if (target->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE))
|
||||
continue;
|
||||
if (target->HasUnitState(UNIT_STAT_UNATTACKABLE))
|
||||
continue;
|
||||
if (i_source->IsControlledByPlayer())
|
||||
{
|
||||
if (i_source->IsFriendlyTo(target))
|
||||
|
||||
Reference in New Issue
Block a user