Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE
Port From (https://github.com/TrinityCore/TrinityCore/commit/88ff97c1f96381565c47f8ca1993bdc7fce19fd6)
This commit is contained in:
@@ -378,7 +378,7 @@ namespace Scripts.EasternKingdoms.MagistersTerrace.FelbloodKaelthas
|
||||
me.AttackStop();
|
||||
me.SetReactState(ReactStates.Passive);
|
||||
me.RemoveAllAuras();
|
||||
me.SetUnitFlag(UnitFlags.Uninteractible);
|
||||
me.SetUninteractible(true);
|
||||
DoCastSelf(SpellIds.EmberBlast);
|
||||
// DoCastSelf(SpellSummonPhoenixEgg); -- We do a manual summon for now. Feel free to move it to spelleffect_dbc
|
||||
Creature egg = DoSummon(CreatureIds.PhoenixEgg, me.GetPosition(), TimeSpan.FromSeconds(0));
|
||||
@@ -407,7 +407,7 @@ namespace Scripts.EasternKingdoms.MagistersTerrace.FelbloodKaelthas
|
||||
_isInEgg = false;
|
||||
DoCastSelf(SpellIds.FullHeal);
|
||||
DoCastSelf(SpellIds.Burn);
|
||||
me.RemoveUnitFlag(UnitFlags.Uninteractible);
|
||||
me.SetUninteractible(false);
|
||||
engageTask.Schedule(TimeSpan.FromSeconds(2), task => me.SetReactState(ReactStates.Aggressive));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user