Log in

Boost creature type

void boost_creature_type(int player, int card, event_t event, creature_type_t type, int power, int toughness, int abilities, int flags);

Applies power and toughness modifiers and grants keyword abilities to creatures of specified type.
Useful for implementing "lord" creatures like Goblin King.

handles events: EVENT_POWER, EVENT_TOUGHNESS, EVENT_ABILITIES
implemented in: functions/boost_creature_type.c

player, card, event: standard parameters given to card function
creature_type: affected creature type, such as SUBTYPE_GOBLIN. Only one type can be specified. Call the function multiple times if you need more. (NOTE: only SUBTYPE_MERFOLK is in 2009-03-17 manalink.h)
power: power modifier
mod_toughness: toughness modifier
mod_keywords: keywords to be added, such as KEYWORD_FLYING. Multiple keywords can be combined with bitwise OR operator. (NOTE: these are currently unimplemented in manalink.h)
flags: Flags affecting the function's behavior. Multiple flags can be combined with bitwise OR operator.
supported flags:

  • BCT_CONTROLLER_ONLY: The effect applies only to permanents under the same player's control than this card is.
  • BCT_INCLUDE_SELF: The effect applies to the card itself too, if it has the correct creature type.