示例#1
0
  @Override
  protected void evolve() {
    super.evolve();

    Char ch;
    for (int i = 0; i < LENGTH; i++) {
      if (cur[i] > 0 && (ch = Actor.findChar(i)) != null) {
        if (!ch.immunities().contains(this.getClass()))
          Buff.prolong(ch, Paralysis.class, Paralysis.duration(ch) / 5);
      }
    }
  }
示例#2
0
  @Override
  public int defenseProc(Char enemy, int damage) {

    int dmg = Random.IntRange(0, damage);
    if (dmg > 0) {
      enemy.damage(dmg, this);
    }

    return super.defenseProc(enemy, damage);
  }