/** * Takes in Hero Class as a parameter. Change current player's current HP * * @param hero */ @Override public void triggerEffect(Hero hero) { int duration = this.getDuration(); if (duration > 0) { int curHP = hero.getCurrentHP(); hero.setCurrentHP(curHP + this.getChange()); if (curHP <= 0) { hero.makeGhost(); } this.setDuration(--duration); } }