// Update is called once per frame void Update() { getTurn(); if (AttackBoost.boostAppliedWarrior == true && AttackBoost.statRevertedWarrior == false && currentTurn == AttackBoost.boostEndWarrior) { WarriorScript.setAttackStat(10); AttackBoost.statRevertedWarrior = true; print("Stat reverted for Warrior"); } //end if if (AttackBoost.boostAppliedMage == true && AttackBoost.statRevertedMage == false && currentTurn == AttackBoost.boostEndMage) { MageScript.setAttackStat(5); AttackBoost.statRevertedMage = true; print("Stat reverted for Mage"); } //end if if (WarriorScript.getCurrentHP() > 100) { WarriorScript.setHP(100); } //end if if (MageScript.getCurrentHP() > 80) { MageScript.setHP(80); } //end if }
} //end onWarriorBoost public void onMageBoost() { statRevertedMage = false; boostEndMage = BattleTurn.currentTurn + 5; boostAppliedMage = true; MageScript.setAttackStat(MageScript.getAttackStat() + 10); BattleTurn.currentTurn++; print(MageScript.getAttackStat()); } //end onMageBoost