Skip to main content

Module attach_ai

Module attach_ai 

Source
Expand description

AI logic for equipment attachment decisions.

Mirrors Java forge/forge-ai/src/main/java/forge/ai/ability/AttachAi.java. Determines whether the AI should offer an equip ability or skip it.

Functions§

is_equip_ability
Check if an activated ability is an equip/attach ability.
should_skip_equip
Returns true if the equip ability on equipment_id should be skipped (i.e., the AI would not play it because re-equipping is not worthwhile).