游戏可以运行

This commit is contained in:
2026-05-24 09:05:39 +08:00
parent ef564338a6
commit a8c5fb2356
8 changed files with 43 additions and 44 deletions

View File

@@ -106,8 +106,7 @@ class Battlefield:
if owner and owner.faction_id == "qin":
owner.provisions += 1
if "no_retaliation" not in attacker.abilities:
if not (attacker.is_ranged() and attacker.zone == "support"):
if "no_retaliation" not in attacker.abilities and not attacker.is_ranged():
retal = defender.get_effective_defense() if defender.is_alive() else 0
if retal > 0:
attacker.take_damage(retal)