@Override
 public void onChallengerLose(Human challenger, IBattleUnit beChallenged) {
   HumanWarriorManager warriorManager = challenger.getHumanWarriorManager();
   warriorManager.refreshOpponent(true);
   warriorManager.sendUpdateOpponentMessage();
   int damage = orignalHp - beChallenged.getBattleContext().getBattleProperty().getHp();
   warriorManager.updateQuestCounter(damage / (orignalHp * 1f));
 }
Example #2
0
 @Override
 public int getMaxEnergyValue(IBattleUnit unit) {
   return unit.getBattleContext()
       .getBattleProperty()
       .getBattleFinalPropertyByIndex(Level2Property.BLUE_MAX);
 }
 @Override
 public void beforeBattleStart(Human challenger, IBattleUnit beChallenged) {
   orignalHp = beChallenged.getBattleContext().getBattleProperty().getHp();
 }