|
|
|
@ -100,7 +100,8 @@ void Monster::STRATEGY::GHOST_OF_PIRATE_CAPTAIN(Monster&m,float fElapsedTime,std |
|
|
|
|
m.F(A::GHOST_SABER_TIMER)-=fElapsedTime; |
|
|
|
|
|
|
|
|
|
if(m.B(A::FIRST_WAVE_COMPLETE)){ |
|
|
|
|
m.SetVelocity(util::pointTo(m.GetPos(),game->GetPlayer()->GetPos())); |
|
|
|
|
m.UpdateFacingDirection(m.GetFacingDirectionToTarget(game->GetPlayer()->GetPos())); |
|
|
|
|
m.SetVelocity(util::pointTo(m.GetPos(),game->GetPlayer()->GetPos())*100.f*m.GetMoveSpdMult()); |
|
|
|
|
const float distToPlayer{util::distance(m.GetPos(),game->GetPlayer()->GetPos())}; |
|
|
|
|
if(m.F(A::GHOST_SABER_TIMER)<=0.f&&distToPlayer<=ConfigPixels("Ghost Saber Activation Range")){ |
|
|
|
|
m.F(A::GHOST_SABER_TIMER)=ConfigFloat("Ghost Saber Cooldown"); |
|
|
|
|