Skip to content

Commit bda81d2

Browse files
committed
mcp attack failed fix
1 parent 68662b9 commit bda81d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mcp/OpenRA_Copilot_Library/game_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ def attack_target(self, attacker: Actor, target: Actor) -> bool:
696696
"targets": {"actorId": [target.actor_id]}
697697
})
698698
result = self._handle_response(response, "攻击命令执行失败")
699-
return result.get("status", 0) > 0
699+
return response.get("status", 0) > 0
700700
except GameAPIError as e:
701701
if e.code == "COMMAND_EXECUTION_ERROR":
702702
return False

0 commit comments

Comments
 (0)