Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE

Port From (https://github.com/TrinityCore/TrinityCore/commit/88ff97c1f96381565c47f8ca1993bdc7fce19fd6)
This commit is contained in:
hondacrx
2023-09-04 07:50:01 -04:00
parent 9ba60f66f8
commit fb44221203
24 changed files with 76 additions and 56 deletions
@@ -139,7 +139,7 @@ namespace Scripts.EasternKingdoms.MagistersTerrace.SelinFireheart
Unit CrystalChosen = Global.ObjAccessor.GetUnit(me, CrystalGUID);
if (CrystalChosen != null && CrystalChosen.IsAlive())
{
CrystalChosen.RemoveUnitFlag(UnitFlags.Uninteractible);
CrystalChosen.SetUninteractible(false);
CrystalChosen.CastSpell(me, SpellIds.ManaRage, true);
_events.ScheduleEvent(EventIds.Empower, TimeSpan.FromSeconds(10), PhaseIds.Drain);
}