From: Lukas Krickl Date: Mon, 26 Jan 2026 03:22:23 +0000 (+0100) Subject: action: added tile getter to attack action X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=e4704de6a728ea16fb61aa5df1f60aad93f8ee7a;p=gbrg%2F.git action: added tile getter to attack action --- 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