|
|
|
@ -244,7 +244,7 @@ void Monster::STRATEGY::SLIMEKING(Monster&m,float fElapsedTime,std::string strat |
|
|
|
|
m.phase=ConfigInt("StartPhase"); |
|
|
|
|
}break; |
|
|
|
|
case 1:{ |
|
|
|
|
if(m.hp<=m.stats.A("Health")*ConfigFloat("Phase2.Change")/100){ |
|
|
|
|
if(m.GetRemainingHPPct()<=ConfigFloat("Phase2.Change")/100.f){ |
|
|
|
|
m.phase=2; |
|
|
|
|
m.SetSize(ConfigFloat("Phase2.Size")/100,false); |
|
|
|
|
TransitionPhase(m.phase); |
|
|
|
@ -277,7 +277,7 @@ void Monster::STRATEGY::SLIMEKING(Monster&m,float fElapsedTime,std::string strat |
|
|
|
|
} |
|
|
|
|
}break; |
|
|
|
|
case 2:{ |
|
|
|
|
if(m.hp<=m.stats.A("Health")*ConfigFloat("Phase3.Change")/100){ |
|
|
|
|
if(m.GetRemainingHPPct()<=ConfigFloat("Phase3.Change")/100.f){ |
|
|
|
|
m.phase=3; |
|
|
|
|
m.SetSize(ConfigFloat("Phase3.Size")/100,false); |
|
|
|
|
TransitionPhase(m.phase); |
|
|
|
@ -302,7 +302,7 @@ void Monster::STRATEGY::SLIMEKING(Monster&m,float fElapsedTime,std::string strat |
|
|
|
|
} |
|
|
|
|
}break; |
|
|
|
|
case 3:{ |
|
|
|
|
if(m.hp<=m.stats.A("Health")*ConfigFloat("Phase4.Change")/100){ |
|
|
|
|
if(m.GetRemainingHPPct()<=ConfigFloat("Phase4.Change")/100.f){ |
|
|
|
|
m.phase=4; |
|
|
|
|
m.SetSize(ConfigFloat("Phase4.Size")/100,false); |
|
|
|
|
m.AddBuff(BuffType::SLOWDOWN,99999,ConfigFloat("Phase4.MoveSpdModifier")/100); |
|
|
|
|