@Override public void tick(Hero hero) { super.tick(hero); Player player = hero.getPlayer(); double healAmount = hero.getMaxHealth() * tickHealPercent; hero.setHealth(hero.getHealth() + healAmount); hero.syncHealth(); if (hero.isVerbose()) { player.sendMessage(Messaging.createFullHealthBar(hero.getHealth(), hero.getMaxHealth())); } }
@Override public void apply(Hero hero) { super.apply(hero); this.lastTickTime = System.currentTimeMillis(); }