class_name HorseCostumeCard extends Card func _init(): super._init() # id = Utils.generate_guid() cardName = "Horse Costume" rank = Rank.RANK_2 effectType = EffectType.MOVEMENT_MODIFIER description = "Attached Unit can move and capture in any direction" duration = 3 unitWhitelist = ["Pawn", "Bishop", "Queen", "Rook", "King"] is_default = false # current_movement_string = "mWmFcfF" func apply_effect(target_piece = null, board_flow = null, game_state = null): if !super.apply_effect(target_piece, board_flow, game_state): return false attached_piece = target_piece attached_piece.current_movement_string = "N" return true func reset(): super.reset() remaining_turns = duration attached_piece.reset_current_movement_string()