Commit 560ccf09 authored by IceYGO's avatar IceYGO

Fix the default trap cards not always activating

parent c1a1e4fb
...@@ -134,7 +134,7 @@ namespace WindBot.Game.AI ...@@ -134,7 +134,7 @@ namespace WindBot.Game.AI
protected bool DefaultTrap() protected bool DefaultTrap()
{ {
return LastChainPlayer == 1; return LastChainPlayer == -1 || LastChainPlayer == 1;
} }
protected bool DefaultUniqueTrap() protected bool DefaultUniqueTrap()
......
...@@ -26,6 +26,8 @@ namespace WindBot.Game.AI ...@@ -26,6 +26,8 @@ namespace WindBot.Game.AI
Duel = duel; Duel = duel;
AI = ai; AI = ai;
Executors = new List<CardExecutor>(); Executors = new List<CardExecutor>();
LastChainPlayer = -1;
CurrentChain = new List<ClientCard>(); CurrentChain = new List<ClientCard>();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment