Пример #1
0
  public void unInvoke() {
    // undo the affects of this spell
    if ((affected == null) || (!(affected instanceof MOB))) {
      super.unInvoke();
      return;
    }
    MOB mob = (MOB) affected;
    if (canBeUninvoked()) mob.tell("Your summoning ward dissipates.");

    super.unInvoke();
  }
  @Override
  public void unInvoke() {
    // undo the affects of this spell
    if (!(affected instanceof MOB)) {
      super.unInvoke();
      return;
    }
    final MOB mob = (MOB) affected;
    if (canBeUninvoked()) mob.tell(L("Your teleportation ward dissipates."));

    super.unInvoke();
  }
  public void unInvoke() {
    // undo the affects of this spell
    if ((affected == null) || (!(affected instanceof MOB))) {
      super.unInvoke();
      return;
    }
    MOB mob = (MOB) affected;
    super.unInvoke();

    if (canBeUninvoked())
      if ((mob.location() != null) && (!mob.amDead()))
        mob.location().show(mob, null, CMMsg.MSG_OK_VISUAL, "<S-NAME> fade(s) back into view.");
  }
Пример #4
0
  public void unInvoke() {
    if ((affected == null) || (!(affected instanceof MOB))) return;
    MOB mob = (MOB) affected;

    super.unInvoke();
    if (canBeUninvoked()) mob.tell("You begin to feel more like your regular cranky self.");
  }
Пример #5
0
  public void unInvoke() {
    // undo the affects of this spell
    if ((affected == null) || (!(affected instanceof MOB))) return;
    MOB mob = (MOB) affected;
    if (canBeUninvoked()) mob.tell("Your magic missile protection dissipates.");

    super.unInvoke();
  }
Пример #6
0
 @Override
 public void unInvoke() {
   final Physical affected = super.affected;
   super.unInvoke();
   if (canBeUninvoked()) {
     if (affected instanceof MOB) ((MOB) affected).tell(L("Your anti-plant shell fades."));
   }
 }
Пример #7
0
  @Override
  public void unInvoke() {
    if (!(affected instanceof MOB)) return;
    final MOB mob = (MOB) affected;

    super.unInvoke();
    if (canBeUninvoked()) mob.tell(L("You begin to feel more like your regular cranky self."));
  }
  @Override
  public void unInvoke() {
    if (!(affected instanceof MOB)) return;
    final MOB mob = (MOB) affected;

    super.unInvoke();
    if (canBeUninvoked()) mob.tell(L("Your sight becomes less keen."));
  }
Пример #9
0
  @Override
  public void unInvoke() {
    // undo the affects of this spell
    if (!(affected instanceof MOB)) return;
    final MOB mob = (MOB) affected;
    super.unInvoke();

    if (canBeUninvoked()) mob.tell(L("You begin to feel better."));
  }
Пример #10
0
  @Override
  public void unInvoke() {
    // undo the affects of this spell
    if (!(affected instanceof MOB)) return;
    final MOB mob = (MOB) affected;
    if (canBeUninvoked()) mob.tell(L("Your uninhibiting protection dissipates."));

    super.unInvoke();
  }
Пример #11
0
 @Override
 public void unInvoke() {
   if ((affected != null)
       && (affected instanceof Item)
       && (((Item) affected).owner() != null)
       && (((Item) affected).owner() instanceof Room))
     ((Room) ((Item) affected).owner())
         .showHappens(CMMsg.MSG_OK_ACTION, L("@x1 stops moving.", affected.name()));
   super.unInvoke();
 }
Пример #12
0
  @Override
  public void unInvoke() {
    if (!(affected instanceof MOB)) return;
    final MOB mob = (MOB) affected;

    super.unInvoke();
    if (canBeUninvoked())
      if ((mob.location() != null) && (!mob.amDead()))
        mob.location()
            .show(
                mob,
                null,
                CMMsg.MSG_OK_VISUAL,
                L("<S-YOUPOSS> ability to breathe underwater fades."));
  }
Пример #13
0
  public void unInvoke() {
    // undo the affects of this spell
    if ((affected == null) || (!(affected instanceof MOB))) return;
    MOB mob = (MOB) affected;

    super.unInvoke();
    if (canBeUninvoked()) {
      mob.location()
          .show(
              mob,
              null,
              CMMsg.MSG_NOISYMOVEMENT,
              "<S-NAME> manage(s) to break <S-HIS-HER> way free of the repulsion field.");
      CMLib.commands().postStand(mob, true);
    }
  }
Пример #14
0
 public void unInvoke() {
   if ((canBeUninvoked()) && (affected != null)) {
     if (affected instanceof Exit) {
       Exit exit = (Exit) affected;
       exit.setDoorsNLocks(
           exit.hasADoor(),
           !exit.hasADoor(),
           exit.defaultsClosed(),
           exit.hasALock(),
           exit.hasALock(),
           exit.defaultsLocked());
     } else if (affected instanceof Container) {
       Container container = (Container) affected;
       container.setLidsNLocks(
           container.hasALid(), !container.hasALid(), container.hasALock(), container.hasALock());
     }
   }
   super.unInvoke();
 }