public bool bomb(Vector2 position,damageInfo damage)
{
bool hit = false;
List<int> pos = vecToBoard (position);
// If damage is applied to a turret
if (board [pos [0], pos [1]].turretIsActivated ()) {
damage.applyToTurret(board [pos [0], pos [1]].getTurret());
hit = true;
}
// If damage is applied to a player
if (occupiedByPlayer(position)) {
damage.applyToPlayer(getPlayer(position));
hit = true;
}
if (damage.type != "tentative") {
foreach (blastShield b in blastShields) {
if (b.hit (position) && !b.hit (players[0].getPosition())
&& !b.hit (players[0].getPosition())){
b.rise();
}
}
}
board [pos[0], pos[1]].addDamage (damage);
anim.explode(position, Quaternion.identity);
return hit;
}