@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))) return; MOB mob = (MOB) affected; if (canBeUninvoked()) mob.tell("Your magic missile protection dissipates."); super.unInvoke(); }
@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.")); } }
@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.")); }
@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.")); }
@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(); }
@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(); }
@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.")); }
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(); }