mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Scripts/Hyjal): Azgalor Doom should not be cast on the MT (#18738)
This commit is contained in:
@@ -253,9 +253,9 @@ SpellCastResult UnitAI::DoCastAOE(uint32 spellId, bool triggered)
|
|||||||
return me->CastSpell((Unit*)nullptr, spellId, triggered);
|
return me->CastSpell((Unit*)nullptr, spellId, triggered);
|
||||||
}
|
}
|
||||||
|
|
||||||
SpellCastResult UnitAI::DoCastRandomTarget(uint32 spellId, uint32 threatTablePosition, float dist, bool playerOnly, bool triggered)
|
SpellCastResult UnitAI::DoCastRandomTarget(uint32 spellId, uint32 threatTablePosition, float dist, bool playerOnly, bool triggered, bool withTank)
|
||||||
{
|
{
|
||||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, threatTablePosition, dist, playerOnly))
|
if (Unit* target = SelectTarget(SelectTargetMethod::Random, threatTablePosition, dist, playerOnly, withTank))
|
||||||
{
|
{
|
||||||
return DoCast(target, spellId, triggered);
|
return DoCast(target, spellId, triggered);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ public:
|
|||||||
SpellCastResult DoCastToAllHostilePlayers(uint32 spellid, bool triggered = false);
|
SpellCastResult DoCastToAllHostilePlayers(uint32 spellid, bool triggered = false);
|
||||||
SpellCastResult DoCastVictim(uint32 spellId, bool triggered = false);
|
SpellCastResult DoCastVictim(uint32 spellId, bool triggered = false);
|
||||||
SpellCastResult DoCastAOE(uint32 spellId, bool triggered = false);
|
SpellCastResult DoCastAOE(uint32 spellId, bool triggered = false);
|
||||||
SpellCastResult DoCastRandomTarget(uint32 spellId, uint32 threatTablePosition = 0, float dist = 0.0f, bool playerOnly = true, bool triggered = false);
|
SpellCastResult DoCastRandomTarget(uint32 spellId, uint32 threatTablePosition = 0, float dist = 0.0f, bool playerOnly = true, bool triggered = false, bool withTank = true);
|
||||||
|
|
||||||
// Cast spell on the top threat target, which may not be the current victim.
|
// Cast spell on the top threat target, which may not be the current victim.
|
||||||
SpellCastResult DoCastMaxThreat(uint32 spellId, uint32 threatTablePosition = 0, float dist = 0.0f, bool playerOnly = true, bool triggered = false);
|
SpellCastResult DoCastMaxThreat(uint32 spellId, uint32 threatTablePosition = 0, float dist = 0.0f, bool playerOnly = true, bool triggered = false);
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ public:
|
|||||||
context.Repeat(18s, 20s);
|
context.Repeat(18s, 20s);
|
||||||
}).Schedule(45s, 55s, [this](TaskContext context)
|
}).Schedule(45s, 55s, [this](TaskContext context)
|
||||||
{
|
{
|
||||||
DoCastRandomTarget(SPELL_DOOM, 0, 100.f);
|
DoCastRandomTarget(SPELL_DOOM, 0, 100.f, true, false, false);
|
||||||
Talk(SAY_DOOM);
|
Talk(SAY_DOOM);
|
||||||
context.Repeat();
|
context.Repeat();
|
||||||
}).Schedule(10min, [this](TaskContext context)
|
}).Schedule(10min, [this](TaskContext context)
|
||||||
|
|||||||
Reference in New Issue
Block a user