Is banished

From Kolmafia
Revision as of 07:37, 22 November 2014 by imported>Bale (r13222)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

boolean is_banished(monster mob )

  • mob is the monster to check

This function will return true if a specified monster is currently banished.

Code Samples

Is any monster at the current location banished?

foreach x, mob in get_monsters( my_location() )
   if( is_banished(mob) )
      print( "Banished Monster: " + mob );

CLI Equivalent

The CLI command "get banishedMonsters" will display a list of all banished monsters, the banisher that was used and the turn they were banished. Unfortunately it does not tell you how long the banish lasted, so they might not still be banished.

See Also

get_monsters() | last_monster() | my_location()