Last monster

From Kolmafia
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

monster last_monster()

Returns last monster encountered.

See Also

get_monsters() | appearance_rates()

Special

If no monster is specified and no monster has been fought in this session, this function returns $monster[none]. This is because mafia forgets the value when it logs out.