Add in Charged Shot ability and allow precasting without the targeting indicator.
This commit is contained in:
+5
-1
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user