mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 00:08:01 +00:00
fix(Scripts/ZulAman): Fix Narolakk Mangle timer and Bear phase not la… (#20648)
* fix(Scripts/ZulAman): Fix Narolakk Mangle timer and Bear phase not lasting for full duration * Update boss_nalorakk.cpp * Update boss_nalorakk.cpp
This commit is contained in:
@@ -15,13 +15,6 @@
|
|||||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* ScriptData
|
|
||||||
SDName: Boss_Nalorakk
|
|
||||||
SD%Complete: 100
|
|
||||||
SDComment:
|
|
||||||
SDCategory: Zul'Aman
|
|
||||||
EndScriptData */
|
|
||||||
|
|
||||||
#include "CellImpl.h"
|
#include "CellImpl.h"
|
||||||
#include "CreatureScript.h"
|
#include "CreatureScript.h"
|
||||||
#include "GridNotifiers.h"
|
#include "GridNotifiers.h"
|
||||||
@@ -225,7 +218,7 @@ struct boss_nalorakk : public BossAI
|
|||||||
context.Repeat();
|
context.Repeat();
|
||||||
}).Schedule(10s, 15s, GROUP_HUMAN, [this](TaskContext context)
|
}).Schedule(10s, 15s, GROUP_HUMAN, [this](TaskContext context)
|
||||||
{
|
{
|
||||||
if (me->GetVictim() && !me->GetVictim()->HasAura(SPELL_MANGLEEFFECT))
|
if (me->GetVictim() && !me->GetVictim()->HasAura(SPELL_MANGLE))
|
||||||
{
|
{
|
||||||
DoCastVictim(SPELL_MANGLE);
|
DoCastVictim(SPELL_MANGLE);
|
||||||
context.Repeat(1s);
|
context.Repeat(1s);
|
||||||
@@ -247,7 +240,6 @@ struct boss_nalorakk : public BossAI
|
|||||||
if (currentlyInBearForm)
|
if (currentlyInBearForm)
|
||||||
{
|
{
|
||||||
Talk(SAY_SHIFTEDTOTROLL);
|
Talk(SAY_SHIFTEDTOTROLL);
|
||||||
me->RemoveAurasDueToSpell(SPELL_BEARFORM);
|
|
||||||
scheduler.CancelGroup(GROUP_BEAR);
|
scheduler.CancelGroup(GROUP_BEAR);
|
||||||
_bearForm = false;
|
_bearForm = false;
|
||||||
scheduler.Schedule(15s, 20s, GROUP_HUMAN, [this](TaskContext context)
|
scheduler.Schedule(15s, 20s, GROUP_HUMAN, [this](TaskContext context)
|
||||||
@@ -291,10 +283,9 @@ struct boss_nalorakk : public BossAI
|
|||||||
{
|
{
|
||||||
DoCastSelf(SPELL_DEAFENINGROAR);
|
DoCastSelf(SPELL_DEAFENINGROAR);
|
||||||
context.Repeat(15s, 20s);
|
context.Repeat(15s, 20s);
|
||||||
}).Schedule(25s, 30s, GROUP_BEAR, [this](TaskContext context)
|
}).Schedule(30s, GROUP_BEAR, [this](TaskContext)
|
||||||
{
|
{
|
||||||
ShapeShift(_bearForm);
|
ShapeShift(_bearForm);
|
||||||
context.Repeat();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user