This commit is contained in:
22 files changed
+326
-21
No files matched your search
@@ -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