コード例 #1
0
        public DamageResult GetDamage(Creature creature, int savingThrow)
        {
            if (!creature.CanBeAffectedBy(this))
            {
                return(DamageResult.None);
            }

            DamageResult damageResult = new DamageResult();

            damageResult.CollectDamages(creature, damages, successfulSaveDamages, savingThrow, creature.creatureSize);

            return(damageResult);
        }