|
|
|
@ -211,8 +211,10 @@ void Monster::STRATEGY::SLIMEKING(Monster&m,float fElapsedTime,std::string strat |
|
|
|
|
lineToPlayer={m.GetPos(),m.GetPos()+vf2d{cos(randomDir),sin(randomDir)}*1}; |
|
|
|
|
} |
|
|
|
|
game->GetPlayer()->Knockback(lineToPlayer.vector().norm()*float(ConfigInt("JumpKnockbackFactor"))); |
|
|
|
|
if(m.phase!=2){ //In phase 2, the player can get slammed multiple times. No iframes for messing up.
|
|
|
|
|
game->GetPlayer()->SetIframes(1); |
|
|
|
|
if(m.phase!=2){ |
|
|
|
|
game->GetPlayer()->SetIframes(1.f); |
|
|
|
|
}else{ //In phase 2 you can get hit by multiple knockbacks, so the iframe time is a lot shorter.
|
|
|
|
|
game->GetPlayer()->SetIframes(0.2f); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
m.SetZ(0); |
|
|
|
|