More abilities, refactor stealing held items
All checks were successful
Build / Build (push) Successful in 50s
All checks were successful
Build / Build (push) Successful in 50s
This commit is contained in:
@@ -6,7 +6,7 @@ public class KnockOff : Script
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (target.RemoveHeldItemForBattle() is null)
|
||||
if (!target.TryStealHeldItem(out var item))
|
||||
{
|
||||
move.GetHitData(target, hit).Fail();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user