public void c() {
    this.c.setGoalTarget(this.b);
    EntityLiving entityliving = this.a.getOwner();

    if (entityliving != null) {
      this.e = entityliving.aF();
    }

    super.c();
  }
  public boolean a() {
    if (!this.a.isTamed()) {
      return false;
    } else {
      EntityLiving entityliving = this.a.getOwner();

      if (entityliving == null) {
        return false;
      } else {
        this.b = entityliving.getLastDamager();
        int i = entityliving.aF();

        return i != this.e && this.a(this.b, false) && this.a.a(this.b, entityliving);
      }
    }
  }