class_name IntimidateAbility extends BattleEffect #Intimidation : a l'entree en combat, baisse l'Attaque de tous les adversaires func _init() -> void: id = &"intimidate" func on_enter(battle : Battle, slot : BattleSlot) -> void: var targets : Array[BattleSlot] = battle.get_opponents(slot) if targets.is_empty(): return await battle.announce_ability(slot) for target in targets: await battle.change_stat(target, "attack", -1)