예제 #1
2
  public static void heal(Hero hero) {

    hero.HP = hero.HT;
    Buff.detach(hero, Poison.class);
    Buff.detach(hero, Cripple.class);
    Buff.detach(hero, Weakness.class);
    Buff.detach(hero, Bleeding.class);

    hero.sprite.emitter().start(Speck.factory(Speck.HEALING), 0.4f, 4);
  }
 @Override
 protected void apply(Hero hero) {
   setKnown();
   Buff.affect(hero, Invisibility.class, Invisibility.DURATION);
   GLog.i("You see your hands turn invisible!");
   Sample.INSTANCE.play(Assets.SND_MELD);
 }