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

@@ -189,7 +189,8 @@ public static class MoveTurnExecutor
var basePower = battle.Library.DamageCalculator.GetBasePower(executingMove, target, hitIndex, hitData);
hitData.BasePower = basePower;
hitData.Damage = battle.Library.DamageCalculator.GetDamage(executingMove, target, hitIndex, hitData);
hitData.Damage = battle.Library.DamageCalculator.GetDamage(executingMove, executingMove.UseMove.Category,
executingMove.User, target, executingMove.TargetCount, hitIndex, hitData);
var accuracy = useMove.Accuracy;
// If the accuracy is 255, the move should always hit, and as such we should not allow