Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE
Port From (https://github.com/TrinityCore/TrinityCore/commit/88ff97c1f96381565c47f8ca1993bdc7fce19fd6)
This commit is contained in:
@@ -3371,7 +3371,7 @@ namespace Game.Entities
|
||||
{
|
||||
Creature creature = GetMap().GetCreature(guid);
|
||||
// Update fields of triggers, transformed units or unselectable units (values dependent on GM state)
|
||||
if (creature == null || (!creature.IsTrigger() && !creature.HasAuraType(AuraType.Transform) && !creature.HasUnitFlag(UnitFlags.Uninteractible)))
|
||||
if (creature == null || (!creature.IsTrigger() && !creature.HasAuraType(AuraType.Transform) && !creature.IsUninteractible()))
|
||||
continue;
|
||||
|
||||
creature.m_values.ModifyValue(m_unitData).ModifyValue(m_unitData.DisplayID);
|
||||
|
||||
Reference in New Issue
Block a user