// Todo this should be removed public static void Cast(this AttackSpellResult attackSpellResult, List <SpellAttackResultRollableUserControl> attacks) { throw new System.Exception("this method should not be called anymore"); console.AddEntry($"{attackSpellResult.Caster.DisplayName}", fontWeightProvider.Bold); console.AddEntry(" casts a lvl ", fontWeightProvider.Bold); console.AddEntry($"{attackSpellResult.Level} {attackSpellResult.Name}\r\n", fontWeightProvider.Bold); int index = 0; foreach (PlayableEntity target in attackSpellResult.Targets) { SpellAttackResultRollableUserControl attack = attacks[index]; HitAttackResult result = new HitAttackResult { //DamageList = attack.HitDamage, //RollResult = attack.RollResult, OnHitStatuses = attackSpellResult.AppliedStatusList, Owner = attackSpellResult.Caster, Target = target, }; DnDCommandManager.StaticTryExecute(new ApplyHitAttackResultCommand(result, true)); index += 1; } }
public ApplyHitAttackResultCommand(HitAttackResult hitAttackResult) { HitAttackResult = hitAttackResult.Clone() as HitAttackResult; }