From 2723e084dab8946c7089ca2b384dcd0a9f8e55ed Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 18 Apr 2016 10:54:28 +0100 Subject: [PATCH] Run script function when an enemy is disabled. --- src/battle/fighters.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/battle/fighters.c b/src/battle/fighters.c index 0950d5e..136616f 100644 --- a/src/battle/fighters.c +++ b/src/battle/fighters.c @@ -231,6 +231,11 @@ void doFighter(void) battle.stats[STAT_ENEMIES_DISABLED]++; updateObjective(self->name, TT_DISABLE); + + if (self->side != SIDE_ALLIES) + { + runScriptFunction("ENEMIES_DISABLED %d", battle.stats[STAT_ENEMIES_DISABLED]); + } } }