private static void ReportOnVulnerabilitiesAndResistance(DndGame game, Creature creature, string name, DamageType damageType) { if (creature.IsVulnerableTo(damageType, AttackKind.Magical)) { game?.TellDungeonMaster($"{name} is vulnerable to {damageType} damage."); } else if (creature.IsResistantTo(damageType, AttackKind.Magical)) { game?.TellDungeonMaster($"{name} is resistant to {damageType} damage."); } }