More abilities
All checks were successful
Build / Build (push) Successful in 49s

This commit is contained in:
2025-06-09 18:16:29 +02:00
parent e68491e72a
commit 4326794611
26 changed files with 297 additions and 26 deletions

View File

@@ -14,7 +14,7 @@ public class Aftermath : Script
/// <inheritdoc />
public override void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
{
_lastAttack = move;
_lastAttack = !move.GetHitData(target, hit).IsContact ? move : null;
}
/// <inheritdoc />
@@ -22,7 +22,7 @@ public class Aftermath : Script
{
if (source != DamageSource.MoveDamage)
return;
if (_lastAttack is null || !_lastAttack.UseMove.HasFlag("contact"))
if (_lastAttack is null)
return;
var user = _lastAttack.User;
if (!user.IsUsable)