Run script function when an enemy is disabled.

This commit is contained in:
Steve 2016-04-18 10:54:28 +01:00
parent 926d0a23f3
commit 2723e084da
1 changed files with 5 additions and 0 deletions

View File

@ -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]);
}
}
}