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:
@@ -19,7 +19,10 @@ public class Magician : Script
|
||||
if (move.User.HeldItem is not null || target.HeldItem is null)
|
||||
return;
|
||||
|
||||
if (!move.User.TryStealHeldItem(out var item))
|
||||
return;
|
||||
|
||||
move.Battle.EventHook.Invoke(new AbilityTriggerEvent(move.User));
|
||||
_ = move.User.SetHeldItem(target.RemoveHeldItemForBattle());
|
||||
_ = move.User.SetHeldItem(item);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user