Skip to content

Commit

Permalink
fixes EasyRPG#1748. maybe it is not the best possible solution but it…
Browse files Browse the repository at this point in the history
… works.
  • Loading branch information
Tondorian committed Apr 17, 2019
1 parent dea4f9c commit 189aa46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game_battlealgorithm.cpp
Expand Up @@ -1263,6 +1263,7 @@ bool Game_BattleAlgorithm::Skill::Execute() {
if (IsRevived() && !skill.affect_hp) {
this->hp = std::max<int>(0, std::min<int>(GetTarget()->GetMaxHp() - GetTarget()->GetHp(),
GetTarget()->GetMaxHp() * effect / 10));
this->healed_conditions.push_back(1);
this->success = true;
}
}
Expand Down

0 comments on commit 189aa46

Please sign in to comment.