Add a proximity knockback overload function that handles hurt list target types instead. Make large stone toss knockback only apply to targets actually hit. Release Build 9837.
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{}||GetZ()>=1.f)return;
|
||||
if(vel==vf2d{})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();
|
||||
|
||||
Reference in New Issue
Block a user