public override bool CanBeCasted(Unit9 ally, Unit9 enemy, IObstacle obstacle) { if (!base.CanBeCasted(ally, enemy, obstacle)) { return(false); } if (!ally.CanAttack()) { return(false); } return(true); }