Implements confusion effect
All checks were successful
Build / Build (push) Successful in 52s

This commit is contained in:
2025-06-22 11:56:29 +02:00
parent 6394f4eab3
commit 6d448e4e8d
6 changed files with 137 additions and 33 deletions

View File

@@ -56,7 +56,8 @@ public class DamageCalculatorTests
// has a double weakness to the move's Ice type
hit.Effectiveness.Returns(4.0f);
var damage = damageCalculator.GetDamage(executingMove, defender, 0, hit);
var damage = damageCalculator.GetDamage(executingMove, executingMove.UseMove.Category, executingMove.User,
defender, executingMove.TargetCount, 0, hit);
// That means Ice Fang will do between 168 and 196 HP damage, depending on luck.
// Note that we are testing deterministic damage, so we expect the maximum damage.
await Assert.That(damage).IsEqualTo((uint)196);