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:
qwe900
2023-11-20 13:48:45 +01:00
committed by GitHub
parent 57ea341680
commit e8ccda12e4

View File

@@ -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;