void TriggerEffect(CharacterGraphic rangedCardPlayer, RangedCard playedCard) { if (rangedCardPlayer.GetType() == typeof(MercGraphic)) appliedToCharacter.IncrementArmor(armorGainPerRangedAttack); }
void Detonate(CharacterGraphic cardPlayer, MeleeCard playedCard) { if (cardPlayer.GetType() != typeof(MercGraphic)) { CombatManager.main.RemoveRoomStipulationCard(this); cardPlayer.TakeDamage(damage); } }
public bool SpecialPrerequisitesMet(CharacterGraphic user) { bool prerequisitesMet = true; if (targetType == TargetType.SelectFriendlyOther) { if (user.GetType() == typeof(EnemyGraphic)) prerequisitesMet = CardsScreen.main.GetCurrentEnemyCount() > 1; if (user.GetType() == typeof(MercGraphic)) prerequisitesMet = CardsScreen.main.GetCurrentMercCount() > 1; } if (!ExtenderPrerequisitesMet(user)) prerequisitesMet = false; return prerequisitesMet; }
void TriggerEffect(CharacterGraphic rangedCardPlayer, RangedCard playedCard) { if (rangedCardPlayer.GetType() == appropriateAttackerType && playedCard.targetChars[0] == appliedToCharacter) appliedToCharacter.TakeDamage(damagePerRangedAttack); }
void EffectTriggered(CharacterGraphic cardPlayer, MeleeCard playedCard) { if (cardPlayer.GetType() == typeof(MercGraphic)) cardPlayer.TakeDamage(damageForMeleeAttacks); }