This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using PkmnLib.Plugin.Gen7.Common;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "protect")]
|
||||
|
||||
@@ -30,7 +30,7 @@ public class PursuitEffect : Script, IScriptOnSwitchOut
|
||||
|
||||
var choiceQueue = battleData.Battle.ChoiceQueue;
|
||||
|
||||
var choice = choiceQueue?.FirstOrDefault(x => x == _choice);
|
||||
var choice = choiceQueue?.FirstOrDefault(x => Equals(x, _choice));
|
||||
if (choice == null)
|
||||
return;
|
||||
choiceQueue!.Remove(choice);
|
||||
|
||||
Reference in New Issue
Block a user