Add in Charged Shot ability and allow precasting without the targeting indicator.

This commit is contained in:
2023-07-25 18:37:12 -05:00
parent 918fc112bd
commit 045441b595
17 changed files with 74 additions and 5 deletions
+5 -1
View File
@@ -590,7 +590,11 @@ bool Player::CanPathfindTo(vf2d pos,vf2d targetPos,float range){
void Player::PrepareCast(Ability&ability){
castPrepAbility=&ability;
SetState(State::PREP_CAST);
if(ability.precastInfo.range>0){
SetState(State::PREP_CAST);
}else{
CastSpell(ability);
}
}
void Player::SetVelocity(vf2d vel){