Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Teleqraph
2023-07-20 19:09:27 +02:00
committed by GitHub
parent d411233414
commit 88ff97c1f9
107 changed files with 388 additions and 304 deletions
@@ -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;