Пример #1
0
 @Override
 public void damage(int dmg, Object src) {
   super.damage(dmg, src);
   if (src instanceof ToxicGas) {
     ((ToxicGas) src).clear(pos);
   }
 }
Пример #2
0
  @Override
  public void damage(int dmg, Object src) {

    if (state == PASSIVE) {
      state = HUNTING;
    }

    super.damage(dmg, src);
  }