Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE
Port From (https://github.com/TrinityCore/TrinityCore/commit/88ff97c1f96381565c47f8ca1993bdc7fce19fd6)
This commit is contained in:
+2
-2
@@ -46,7 +46,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockSpire.PyroguardEmbe
|
||||
|
||||
public override void Reset()
|
||||
{
|
||||
me.SetUnitFlag(UnitFlags.Uninteractible);
|
||||
me.SetUninteractible(true);
|
||||
me.SetImmuneToPC(true);
|
||||
_scheduler.CancelAll();
|
||||
// Apply auras on spawn and reset
|
||||
@@ -172,7 +172,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockSpire.PyroguardEmbe
|
||||
me.CastSpell(me, SpellIds.EmberseerFullStrength);
|
||||
Talk(TextIds.EmoteFreeOfBonds);
|
||||
Talk(TextIds.YellFreeOfBonds);
|
||||
me.RemoveUnitFlag(UnitFlags.Uninteractible);
|
||||
me.SetUninteractible(false);
|
||||
me.SetImmuneToPC(false);
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(2), task =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user