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:
2024-06-25 03:11:56 -05:00
parent d8c2c615dc
commit afff03e201
7 changed files with 28 additions and 5 deletions
+1 -1
View File
@@ -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();