|
|
@ -42,9 +42,9 @@ bool Warrior::AutoAttack(){ |
|
|
|
closest=&m; |
|
|
|
closest=&m; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(closest!=nullptr&&closest->Hurt(GetAttack(),OnUpperLevel())){ |
|
|
|
if(closest!=nullptr&&closest->Hurt(GetAttack()*"Warrior.Auto Attack.DamageMult"_F,OnUpperLevel())){ |
|
|
|
attack_cooldown_timer=ATTACK_COOLDOWN; |
|
|
|
attack_cooldown_timer=ATTACK_COOLDOWN; |
|
|
|
swordSwingTimer=0.2; |
|
|
|
swordSwingTimer="Warrior.Auto Attack.SwordSwingTime"_F; |
|
|
|
SetState(State::SWING_SWORD); |
|
|
|
SetState(State::SWING_SWORD); |
|
|
|
switch(facingDirection){ |
|
|
|
switch(facingDirection){ |
|
|
|
case DOWN:{ |
|
|
|
case DOWN:{ |
|
|
|