Logic for draining health from the target and healing half of the amount to the caster. More...
Public Member Functions | |
| override IEnumerator | MainLogic (Dueler caster, Dueler target, Dueler originalTarget, float value) |
| override bool | AILogic (Dueler caster, Dueler target) |
Public Member Functions inherited from CardRPG.DamageLogic | |
| override IEnumerator | MainLogic (Dueler caster, Dueler target, Dueler originalTarget, float value) |
| void | EndLogic () |
| override bool | AILogic (Dueler caster, Dueler target) |
| override Dueler | AISelect (Dueler caster, List< Dueler > targets) |
Public Member Functions inherited from CardRPG.CardLogic | |
| void | AddValue (int n) |
| int | GetElement (Dueler caster, Dueler enemy) |
| Gets the element to use for this logic, based on the matcher type. | |
| bool | SatisfyCondition (Dueler caster, Dueler target) |
| Checks if the card condition is satisfied for the given caster and target. | |
| int | RepeatCount (Dueler caster, Dueler target) |
| Gets the number of times to repeat the logic for the given caster and target. | |
| List< Dueler > | GetTargets (List< Dueler > targets, List< Dueler > allTargets) |
| Determines the list of targets for this logic based on the allEnemy flag. | |
| IEnumerator | MainLogic (Dueler caster, Dueler target, Dueler originalTarget, float value) |
| The main logic to apply to a single target. | |
| bool | AILogic (Dueler caster, Dueler target) |
| AI logic for determining if this logic should be used on the given target. | |
| Dueler | AISelect (Dueler caster, List< Dueler > targets) |
| AI logic for selecting the best target for this logic. | |
Properties | |
| override int | DamageAmount [get] |
Properties inherited from CardRPG.DamageLogic | |
| static float[] | AttackModifier [get, set] |
| static int[] | PierceModifier [get, set] |
| override bool | CanCrit [get] |
| override int | DamageAmount [get] |
Properties inherited from CardRPG.CardLogic | |
| int | MinValue [get] |
| Minimum value for the effect (e.g., damage or heal). | |
| int | MaxValue [get] |
| Maximum value for the effect (e.g., damage or heal). | |
| bool | PerPip [get] |
| If true, effect value is multiplied by the number of pips. | |
| bool | AllEnemy [get] |
| If true, applies to all enemies. | |
| bool | Self [get] |
| If true, applies effect to self. | |
| CardCondition | CardCondition [get] |
| The condition that must be satisfied for this logic to apply. | |
| RepeatCondition | RepeatCondition [get] |
| The repeat condition for this logic. | |
| virtual bool | CanCrit [get] |
| Card | Card [get, set] |
| The card this logic belongs to. | |
| virtual int | DamageAmount [get] |
Logic for draining health from the target and healing half of the amount to the caster.