Skip to content

Commit

Permalink
Fix enemy HP trigger for battle events
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri committed Nov 30, 2014
1 parent 06f0503 commit 4a40dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_battle.cpp
Expand Up @@ -180,7 +180,7 @@ bool Game_Battle::AreConditionsMet(const RPG::TroopPageCondition& condition) {
}

if (condition.flags.enemy_hp) {
Game_Battler& enemy = (*Main_Data::game_enemyparty)[condition.enemy_id];
Game_Battler& enemy = (*Main_Data::game_enemyparty)[condition.enemy_id - 1];
int hp = enemy.GetHp();
int hpmin = enemy.GetMaxHp() * condition.enemy_hp_min / 100;
int hpmax = enemy.GetMaxHp() * condition.enemy_hp_max / 100;
Expand Down

0 comments on commit 4a40dfb

Please sign in to comment.