From bce86c2d5e692b756e4c092d299945fd6850c503 Mon Sep 17 00:00:00 2001 From: Bam4d Date: Wed, 19 May 2021 20:36:50 +0100 Subject: [PATCH] fixing combat mechanic --- resources/games/RTS/GriddlyRTS.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/games/RTS/GriddlyRTS.yaml b/resources/games/RTS/GriddlyRTS.yaml index a1687daea..5c612abbb 100644 --- a/resources/games/RTS/GriddlyRTS.yaml +++ b/resources/games/RTS/GriddlyRTS.yaml @@ -367,7 +367,7 @@ Actions: Object: [ base, combat, worker, ranged ] Commands: - sub: [ health, 1 ] - - eq: + - lte: Arguments: [ health, 0 ] Commands: - remove: true @@ -383,8 +383,8 @@ Actions: Object: [ base, combat, worker, ranged, barracks ] Commands: - sub: [ health, 5 ] - - eq: - Arguments: [ 0, health ] + - lte: + Arguments: [ health, 0 ] Commands: - remove: true