From e4704de6a728ea16fb61aa5df1f60aad93f8ee7a Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 26 Jan 2026 04:22:23 +0100 Subject: [PATCH] action: added tile getter to attack action --- src/action.s | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/action.s b/src/action.s index b62f050..707ffb2 100644 --- a/src/action.s +++ b/src/action.s @@ -21,5 +21,14 @@ dw action_attack ; de: actor ; bc: target tile action_attack: - BREAK + push de + call map_get_tile + ; hl = tile ptr + pop de + + ld bc, t_act + add hl, bc ; hl = tact + + ; check if there is something to attack + ret -- 2.30.2