public void unInvoke() { // undo the affects of this spell if ((affected == null) || (!(affected instanceof MOB))) return; if (canBeUninvoked()) { if (invoker != null) { Ability A = invoker.fetchEffect(this.ID()); if (A != null) invoker.delEffect(A); invoker.tell("Your connection with '" + spy.name() + "' fades."); } } super.unInvoke(); }
public void unInvoke() { if (PlantsLocation == null) return; if (littlePlants == null) return; if (canBeUninvoked()) PlantsLocation.showHappens( CMMsg.MSG_OK_VISUAL, littlePlants.name() + " wither" + (littlePlants.name().startsWith("s") ? "" : "s") + " away."); super.unInvoke(); if (canBeUninvoked()) { Item plants = littlePlants; // protects against uninvoke loops! littlePlants = null; plants.destroy(); PlantsLocation.recoverRoomStats(); PlantsLocation = null; } }