Logic for modifying a card's attributes by applying a specified card modifier. More...
Public Member Functions | |
| override Card | EnchantCard (Card card) |
Public Member Functions inherited from CardRPG.EnchantLogic | |
| Card | EnchantCard (Card card) |
| Applies the enchantment logic to the specified card and returns the modified card. | |
Properties | |
| override Type | CardLogicTarget [get] |
Properties inherited from CardRPG.EnchantLogic | |
| Card | Card [get, set] |
| Type | CardLogicTarget [get] |
| Gets the type of the card logic that this instance targets. | |
Logic for modifying a card's attributes by applying a specified card modifier.
This class is designed to work with cards that implement the DamageLogic type. It clones the input card, checks for existing modifiers of the same type, and either updates the modifier's attributes or adds a new modifier to the card.