return;
}
}
if (isInOlympiadMode())
{
OlympiadGame game = _olympiadGame;
if ((this != attacker) && ((skill == null) || skill.isOffensive()))
{
game.addDamage(this, Math.min(hp, damage));
}
if ((hp - damage) <= 1)
{
if (game.getType() != CompType.TEAM)
{
game.setWinner(getOlympiadSide() == 1 ? 2 : 1);
game.endGame(20000, false);
setCurrentHp(1, false);
attacker.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
attacker.sendActionFailed();
return;
}
else if (game.doDie(this))
{
game.setWinner(getOlympiadSide() == 1 ? 2 : 1);
game.endGame(20000, false);
}
}
}
super.onReduceCurrentHp(damage, attacker, skill, awake, standUp, directHp);
}