Targets already in the air should not be knocked back. Fix image loading dependencies internally within the engine so they work even during unit testing. Rearrange some item initializing functions to occur after the GFX map is reset so all graphics are loaded properly. Release Build 9835.
This commit is contained in:
@@ -307,7 +307,7 @@ State::State Player::GetState(){
|
||||
|
||||
void Player::Knockback(vf2d vel){
|
||||
//A new angle will be applied, but will be constrained by whichever applied velocity is strongest (either the current velocity, or the new one). This prevents continuous uncapped velocities to knockbacks applied.
|
||||
if(vel==vf2d{})return;
|
||||
if(vel==vf2d{}||GetZ()>=1.f)return;
|
||||
float maxVelThreshold;
|
||||
if(GetState()==State::BLOCK)vel*=1-("Warrior.Right Click Ability.Knockback Reduction"_I/100.f);
|
||||
if(this->vel==vf2d{})maxVelThreshold=vel.mag();
|
||||
@@ -811,7 +811,6 @@ void Player::AddAnimation(std::string state){
|
||||
}
|
||||
|
||||
void Player::UpdateAnimation(std::string animState,int specificClass, const float frameMult){
|
||||
if(game->TestingModeEnabled())return;
|
||||
if(specificClass==ANY||specificClass&GetClass()){
|
||||
animation.ChangeState(internal_animState,animState,frameMult);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user