mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 10:33:46 +00:00
fix(Scripts/ICC/Sindragosa) Airphase should not be forced after 50s if already in p2 (under 35%) (#17722)
* Update boss_sindragosa.cpp * Update boss_sindragosa.cpp
This commit is contained in:
@@ -279,7 +279,6 @@ public:
|
|||||||
|
|
||||||
void Reset() override
|
void Reset() override
|
||||||
{
|
{
|
||||||
_didFirstFlyPhase = false;
|
|
||||||
_isBelow20Pct = false;
|
_isBelow20Pct = false;
|
||||||
_isThirdPhase = false;
|
_isThirdPhase = false;
|
||||||
_isLanding = false;
|
_isLanding = false;
|
||||||
@@ -322,7 +321,6 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_didFirstFlyPhase = false;
|
|
||||||
_isBelow20Pct = false;
|
_isBelow20Pct = false;
|
||||||
_isThirdPhase = false;
|
_isThirdPhase = false;
|
||||||
_bombCount = 0;
|
_bombCount = 0;
|
||||||
@@ -451,9 +449,6 @@ public:
|
|||||||
if (!damage || me->IsInEvadeMode())
|
if (!damage || me->IsInEvadeMode())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!_didFirstFlyPhase)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!_isThirdPhase)
|
if (!_isThirdPhase)
|
||||||
{
|
{
|
||||||
if (!HealthAbovePct(35))
|
if (!HealthAbovePct(35))
|
||||||
@@ -575,7 +570,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
_isInAirPhase = true;
|
_isInAirPhase = true;
|
||||||
_didFirstFlyPhase = true;
|
|
||||||
Talk(SAY_AIR_PHASE);
|
Talk(SAY_AIR_PHASE);
|
||||||
me->SetReactState(REACT_PASSIVE);
|
me->SetReactState(REACT_PASSIVE);
|
||||||
me->SetSpeed(MOVE_RUN, 4.28571f);
|
me->SetSpeed(MOVE_RUN, 4.28571f);
|
||||||
@@ -671,7 +665,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
uint8 _bombCount;
|
uint8 _bombCount;
|
||||||
uint8 _mysticBuffetStack;
|
uint8 _mysticBuffetStack;
|
||||||
bool _didFirstFlyPhase;
|
|
||||||
bool _isBelow20Pct;
|
bool _isBelow20Pct;
|
||||||
bool _isThirdPhase;
|
bool _isThirdPhase;
|
||||||
bool _isInAirPhase;
|
bool _isInAirPhase;
|
||||||
|
|||||||
Reference in New Issue
Block a user