public void bloodBurstA(PointF from, int damage) {
   if (getVisible()) {
     PointF c = center();
     int n = (int) Math.min(9 * Math.sqrt((double) damage / ch.ht()), 9);
     Splash.at(c, PointF.angle(from, c), 3.1415926f / 2, blood(), n);
   }
 }
Пример #2
0
  public void activate(Char ch) {

    if (ch instanceof Hero && ((Hero) ch).subClass == HeroSubClass.WARDEN) {
      Buff.affect(ch, Barkskin.class).level(ch.ht() / 3);
    }

    effect(pos, ch);

    wither();
  }