This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user