From c62810bf4b866e012748bb22c01d46321f9774af Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 27 Jul 2016 08:44:02 +0100 Subject: [PATCH] Made ATAFs immortal by default. --- data/fighters/ataf.json | 2 +- src/battle/player.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/fighters/ataf.json b/data/fighters/ataf.json index 3b02ec3..05961f1 100644 --- a/data/fighters/ataf.json +++ b/data/fighters/ataf.json @@ -59,6 +59,6 @@ } ], "missiles" : 4, - "flags" : "EF_NO_EPIC+EF_TAKES_DAMAGE", + "flags" : "EF_NO_EPIC+EF_TAKES_DAMAGE+EF_IMMORTAL", "aiFlags" : "AIF_UNLIMITED_RANGE" } diff --git a/src/battle/player.c b/src/battle/player.c index 35b4556..07e7c1b 100644 --- a/src/battle/player.c +++ b/src/battle/player.c @@ -88,6 +88,7 @@ void initPlayer(void) battle.ecmTimer = ECM_RECHARGE_TIME; player->flags |= EF_NO_HEALTH_BAR; + player->flags &= ~EF_IMMORTAL; game.stats[STAT_EPIC_KILL_STREAK] = MAX(game.stats[STAT_EPIC_KILL_STREAK], battle.stats[STAT_EPIC_KILL_STREAK]);