游戏可以运行

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

@@ -60,10 +60,10 @@ class Card:
self.buffs = [(a, d, t - 1) for a, d, t in self.buffs if t > 1]
def can_move_and_attack(self):
return "charge" in self.abilities
return self.unit_type == "cavalry" or "charge" in self.abilities
def is_ranged(self):
return "ranged" in self.abilities
return self.unit_type == "archer" or "ranged" in self.abilities
def get_keywords(self):
result = []