Example #1
0
 @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()));
   }
 }
Example #2
0
 @Override
 public void apply(Hero hero) {
   super.apply(hero);
   this.lastTickTime = System.currentTimeMillis();
 }