mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-24 07:30:07 -04:00
Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
@@ -2438,10 +2438,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
{
|
||||
if (IsUnit(target))
|
||||
{
|
||||
if (e.action.setUninteractible.uninteractible)
|
||||
target->ToUnit()->SetUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
|
||||
else
|
||||
target->ToUnit()->RemoveUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
|
||||
target->ToUnit()->SetUninteractible(e.action.setUninteractible.uninteractible != 0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user