Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alstroemeria-silentlove
windbot
Commits
b2bf309b
Commit
b2bf309b
authored
Apr 10, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
4e48f5fc
4b2ffc27
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
37 deletions
+88
-37
Game/AI/Decks/ChainBurnExecutor.cs
Game/AI/Decks/ChainBurnExecutor.cs
+38
-20
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
+47
-15
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+3
-2
No files found.
Game/AI/Decks/ChainBurnExecutor.cs
View file @
b2bf309b
...
@@ -181,10 +181,11 @@ namespace WindBot.Game.AI.Decks
...
@@ -181,10 +181,11 @@ namespace WindBot.Game.AI.Decks
};
};
}
}
public
int
[]
p
reven
t_list
()
public
int
[]
p
o
t_list
()
{
{
return
new
[]
return
new
[]
{
{
CardId
.
PotOfDesires
,
CardId
.
SandaionTheTimloard
,
CardId
.
SandaionTheTimloard
,
CardId
.
BattleFader
,
CardId
.
BattleFader
,
...
@@ -205,10 +206,9 @@ namespace WindBot.Game.AI.Decks
...
@@ -205,10 +206,9 @@ namespace WindBot.Game.AI.Decks
}
}
return
atk
;
return
atk
;
}
}
public
bool
Has_prevent_list
(
int
id
)
public
bool
Has_prevent_list
_0
(
int
id
)
{
{
return
(
id
==
CardId
.
SandaionTheTimloard
||
return
(
id
==
CardId
.
BattleFader
||
id
==
CardId
.
Waboku
||
id
==
CardId
.
Waboku
||
id
==
CardId
.
ThreateningRoar
||
id
==
CardId
.
ThreateningRoar
||
id
==
CardId
.
MagicCylinder
||
id
==
CardId
.
MagicCylinder
||
...
@@ -216,6 +216,12 @@ namespace WindBot.Game.AI.Decks
...
@@ -216,6 +216,12 @@ namespace WindBot.Game.AI.Decks
id
==
CardId
.
RingOfDestruction
id
==
CardId
.
RingOfDestruction
);
);
}
}
public
bool
Has_prevent_list_1
(
int
id
)
{
return
(
id
==
CardId
.
SandaionTheTimloard
||
id
==
CardId
.
BattleFader
);
}
bool
no_sp
=
false
;
bool
no_sp
=
false
;
bool
one_turn_kill
=
false
;
bool
one_turn_kill
=
false
;
bool
one_turn_kill_1
=
false
;
bool
one_turn_kill_1
=
false
;
...
@@ -223,7 +229,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -223,7 +229,7 @@ namespace WindBot.Game.AI.Decks
bool
prevent_used
=
false
;
bool
prevent_used
=
false
;
int
preventcount
=
0
;
int
preventcount
=
0
;
bool
battleprevent
=
false
;
bool
battleprevent
=
false
;
bool
OjamaTrioused
=
false
;
bool
OjamaTrioused
=
false
;
bool
OjamaTrioused_draw
=
false
;
bool
OjamaTrioused_draw
=
false
;
bool
drawfirst
=
false
;
bool
drawfirst
=
false
;
int
Waboku_count
=
0
;
int
Waboku_count
=
0
;
...
@@ -243,10 +249,9 @@ namespace WindBot.Game.AI.Decks
...
@@ -243,10 +249,9 @@ namespace WindBot.Game.AI.Decks
public
override
void
OnNewTurn
()
public
override
void
OnNewTurn
()
{
{
no_sp
=
false
;
no_sp
=
false
;
prevent_used
=
false
;
prevent_used
=
false
;
battleprevent
=
false
;
}
}
...
@@ -260,7 +265,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -260,7 +265,7 @@ namespace WindBot.Game.AI.Decks
foreach
(
ClientCard
card
in
trap
)
foreach
(
ClientCard
card
in
trap
)
{
{
if
(
Has_prevent_list
(
card
.
Id
))
if
(
Has_prevent_list
_0
(
card
.
Id
))
{
{
preventcount
++;
preventcount
++;
battleprevent
=
true
;
battleprevent
=
true
;
...
@@ -269,7 +274,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -269,7 +274,7 @@ namespace WindBot.Game.AI.Decks
}
}
foreach
(
ClientCard
card
in
monster
)
foreach
(
ClientCard
card
in
monster
)
{
{
if
(
Has_prevent_list
(
card
.
Id
))
if
(
Has_prevent_list
_1
(
card
.
Id
))
{
{
preventcount
++;
preventcount
++;
battleprevent
=
true
;
battleprevent
=
true
;
...
@@ -380,8 +385,14 @@ namespace WindBot.Game.AI.Decks
...
@@ -380,8 +385,14 @@ namespace WindBot.Game.AI.Decks
}
}
return
false
;
return
false
;
}
}
private
bool
OjamaTrioset
()
{
if
(
Bot
.
HasInSpellZone
(
CardId
.
OjamaTrio
))
return
false
;
return
true
;
}
private
bool
BrunSpellSet
()
private
bool
BrunSpellSet
()
{
{
if
(
Card
.
Id
==
CardId
.
OjamaTrio
&&
Bot
.
HasInSpellZone
(
CardId
.
OjamaTrio
))
return
false
;
return
(
Card
.
IsTrap
()
||
Card
.
HasType
(
CardType
.
QuickPlay
))
&&
Bot
.
GetSpellCountWithoutField
()
<
5
;
return
(
Card
.
IsTrap
()
||
Card
.
HasType
(
CardType
.
QuickPlay
))
&&
Bot
.
GetSpellCountWithoutField
()
<
5
;
}
}
private
bool
SandaionTheTimloard_summon
()
private
bool
SandaionTheTimloard_summon
()
...
@@ -409,7 +420,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -409,7 +420,8 @@ namespace WindBot.Game.AI.Decks
private
bool
PotOfDualityeff
()
private
bool
PotOfDualityeff
()
{
{
no_sp
=
true
;
no_sp
=
true
;
AI
.
SelectCard
(
prevent_list
());
AI
.
SelectCard
(
pot_list
());
return
true
;
return
true
;
}
}
private
bool
BlazingMirrorForceeff
()
private
bool
BlazingMirrorForceeff
()
...
@@ -479,9 +491,18 @@ namespace WindBot.Game.AI.Decks
...
@@ -479,9 +491,18 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
RecklessGreedeff
()
private
bool
RecklessGreedeff
()
{
{
int
count
=
0
;
foreach
(
ClientCard
card
in
Bot
.
GetSpells
())
{
if
(
card
.
Id
==
CardId
.
RecklessGreed
)
count
++;
}
bool
Demiseused
=
AI
.
Utils
.
ChainContainsCard
(
CardId
.
CardOfDemise
);
if
(
drawfirst
)
return
DefaultUniqueTrap
();
if
(
drawfirst
)
return
DefaultUniqueTrap
();
if
(
must_chain
()
&&
greed_count
>
1
)
return
true
;
if
(
must_chain
()
&&
count
>
1
)
return
true
;
if
(
greed_count
>
1
)
return
true
;
if
(
Demiseused
)
return
false
;
if
(
count
>
1
)
return
true
;
if
(
Bot
.
LifePoints
<=
2000
)
return
true
;
if
(
Bot
.
LifePoints
<=
2000
)
return
true
;
if
(
Bot
.
GetHandCount
()
<
1
&&
Duel
.
Player
==
0
&&
Duel
.
Phase
!=
DuelPhase
.
Standby
)
return
true
;
if
(
Bot
.
GetHandCount
()
<
1
&&
Duel
.
Player
==
0
&&
Duel
.
Phase
!=
DuelPhase
.
Standby
)
return
true
;
return
false
;
return
false
;
...
@@ -509,18 +530,14 @@ namespace WindBot.Game.AI.Decks
...
@@ -509,18 +530,14 @@ namespace WindBot.Game.AI.Decks
return
false
;
return
false
;
}
}
private
bool
OjamaTrioset
()
{
if
(
Bot
.
HasInSpellZone
(
CardId
.
OjamaTrio
))
return
false
;
return
true
;
}
private
bool
OjamaTrioeff
()
private
bool
OjamaTrioeff
()
{
{
return
OjamaTrioused
||
OjamaTrioused_draw
;
return
OjamaTrioused
||
OjamaTrioused_draw
;
}
}
private
bool
JustDessertseff
()
private
bool
JustDessertseff
()
{
{
if
(
Duel
.
Player
==
0
)
return
false
;
if
(
drawfirst
)
return
DefaultUniqueTrap
();
if
(
drawfirst
)
return
DefaultUniqueTrap
();
if
(
one_turn_kill_1
)
return
DefaultUniqueTrap
();
if
(
one_turn_kill_1
)
return
DefaultUniqueTrap
();
if
(
one_turn_kill
)
return
DefaultUniqueTrap
();
if
(
one_turn_kill
)
return
DefaultUniqueTrap
();
...
@@ -537,6 +554,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -537,6 +554,7 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
ChainStrikeeff
()
private
bool
ChainStrikeeff
()
{
{
if
(
drawfirst
)
return
true
;
if
(
drawfirst
)
return
true
;
if
(
must_chain
())
return
true
;
if
(
must_chain
())
return
true
;
int
chain
=
Duel
.
CurrentChain
.
Count
;
int
chain
=
Duel
.
CurrentChain
.
Count
;
...
@@ -593,7 +611,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -593,7 +611,7 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
Linkuriboheff
()
private
bool
Linkuriboheff
()
{
{
ClientCard
lastchaincard
=
AI
.
Utils
.
GetLastChainCard
();
ClientCard
lastchaincard
=
AI
.
Utils
.
GetLastChainCard
();
if
(
lastchaincard
==
null
)
return
true
;
if
(
lastchaincard
==
null
)
return
true
;
if
(
lastchaincard
.
Id
==
CardId
.
Linkuriboh
)
return
false
;
if
(
lastchaincard
.
Id
==
CardId
.
Linkuriboh
)
return
false
;
return
true
;
return
true
;
...
...
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
View file @
b2bf309b
...
@@ -144,13 +144,13 @@ namespace WindBot.Game.AI.Decks
...
@@ -144,13 +144,13 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
MonsterReborn
,
spellset
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
MonsterReborn
,
spellset
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
PotOfAvarice
,
spellset
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
PotOfAvarice
,
spellset
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
ThatGrassLooksgreener
,
spellset
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
ThatGrassLooksgreener
,
spellset
);
//trap
//trap
set
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
LostWind
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
LostWind
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
SinisterShadowGames
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
SinisterShadowGames
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
ShaddollCore
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
ShaddollCore
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
infiniteTransience
,
SetIsFieldEmpty
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
infiniteTransience
,
SetIsFieldEmpty
);
//trap activate
//trap activate
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
LostWind
,
DefaultBreakthroughSkill
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
LostWind
,
LostWindeff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SinisterShadowGames
,
SinisterShadowGameseff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SinisterShadowGames
,
SinisterShadowGameseff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ShaddollCore
,
ShaddollCoreeff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ShaddollCore
,
ShaddollCoreeff
);
AddExecutor
(
ExecutorType
.
Repos
,
MonsterRepos
);
AddExecutor
(
ExecutorType
.
Repos
,
MonsterRepos
);
...
@@ -262,12 +262,12 @@ namespace WindBot.Game.AI.Decks
...
@@ -262,12 +262,12 @@ namespace WindBot.Game.AI.Decks
CardId
.
GhostOgre
,
CardId
.
GhostOgre
,
CardId
.
MaxxC
,
CardId
.
MaxxC
,
};
};
if
(
Bot
.
HasInHand
(
targets
)||
Bot
.
HasInMonstersZone
(
targets
))
if
(!
Bot
.
HasInHand
(
targets
)
||
!
Bot
.
HasInMonstersZone
(
targets
))
{
{
AI
.
SelectCard
(
targets
);
return
false
;
return
true
;
}
}
AI
.
SelectCard
(
targets
);
return
true
;
}
}
if
(
Duel
.
Phase
==
DuelPhase
.
BattleStart
)
if
(
Duel
.
Phase
==
DuelPhase
.
BattleStart
)
{
{
...
@@ -313,6 +313,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -313,6 +313,7 @@ namespace WindBot.Game.AI.Decks
private
bool
OvertexCoatlseff
()
private
bool
OvertexCoatlseff
()
{
{
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
)
return
false
;
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
)
return
false
;
OvertexCoatlseff_used
=
true
;
return
true
;
return
true
;
}
}
...
@@ -485,10 +486,14 @@ namespace WindBot.Game.AI.Decks
...
@@ -485,10 +486,14 @@ namespace WindBot.Game.AI.Decks
}
}
return
false
;
return
false
;
}
}
private
bool
spellset
()
private
bool
spellset
()
{
{
return
Bot
.
Hand
.
Count
>
6
;
return
Bot
.
Hand
.
Count
>
6
;
}
}
private
bool
RebornEffect
()
private
bool
RebornEffect
()
{
{
if
(
Bot
.
HasInGraveyard
(
CardId
.
UltimateConductorTytanno
)&&
Ultimate_ss
>
0
)
if
(
Bot
.
HasInGraveyard
(
CardId
.
UltimateConductorTytanno
)&&
Ultimate_ss
>
0
)
...
@@ -509,6 +514,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -509,6 +514,8 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
targets
);
AI
.
SelectCard
(
targets
);
return
true
;
return
true
;
}
}
private
bool
PotofAvariceeff
()
private
bool
PotofAvariceeff
()
{
{
return
true
;
return
true
;
...
@@ -518,10 +525,14 @@ namespace WindBot.Game.AI.Decks
...
@@ -518,10 +525,14 @@ namespace WindBot.Game.AI.Decks
{
{
return
Duel
.
Player
==
1
;
return
Duel
.
Player
==
1
;
}
}
private
bool
SetIsFieldEmpty
()
private
bool
SetIsFieldEmpty
()
{
{
return
!
Bot
.
IsFieldEmpty
();
return
!
Bot
.
IsFieldEmpty
();
}
}
private
bool
TrapSetWhenZoneFree
()
private
bool
TrapSetWhenZoneFree
()
{
{
return
Bot
.
GetSpellCountWithoutField
()
<
4
;
return
Bot
.
GetSpellCountWithoutField
()
<
4
;
...
@@ -553,6 +564,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -553,6 +564,8 @@ namespace WindBot.Game.AI.Decks
}
}
return
true
;
return
true
;
}
}
private
bool
ElShaddollShekhinagaeff
()
private
bool
ElShaddollShekhinagaeff
()
{
{
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
...
@@ -576,6 +589,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -576,6 +589,8 @@ namespace WindBot.Game.AI.Decks
}
}
return
true
;
return
true
;
}
}
private
bool
ElShaddollGrysraeff
()
private
bool
ElShaddollGrysraeff
()
{
{
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
...
@@ -690,6 +705,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -690,6 +705,8 @@ namespace WindBot.Game.AI.Decks
}
}
return
true
;
return
true
;
}
}
private
bool
ShaddollHedgehogeff
()
private
bool
ShaddollHedgehogeff
()
{
{
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
...
@@ -705,6 +722,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -705,6 +722,8 @@ namespace WindBot.Game.AI.Decks
}
}
return
true
;
return
true
;
}
}
private
bool
ShaddollDragoneff
()
private
bool
ShaddollDragoneff
()
{
{
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
)
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
)
...
@@ -720,6 +739,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -720,6 +739,8 @@ namespace WindBot.Game.AI.Decks
return
true
;
return
true
;
}
}
}
}
private
bool
ShaddollSquamataeff
()
private
bool
ShaddollSquamataeff
()
{
{
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
...
@@ -739,6 +760,17 @@ namespace WindBot.Game.AI.Decks
...
@@ -739,6 +760,17 @@ namespace WindBot.Game.AI.Decks
}
}
return
true
;
return
true
;
}
}
private
bool
LostWindeff
()
{
List
<
ClientCard
>
check
=
Enemy
.
GetMonsters
();
foreach
(
ClientCard
m
in
check
)
{
if
(
m
.
Attack
>=
2000
)
return
DefaultBreakthroughSkill
();
}
return
false
;
}
private
bool
FoolishBurialEffect
()
private
bool
FoolishBurialEffect
()
{
{
if
(
Bot
.
GetRemainingCount
(
CardId
.
DoubleEvolutionPill
,
3
)
>
0
)
if
(
Bot
.
GetRemainingCount
(
CardId
.
DoubleEvolutionPill
,
3
)
>
0
)
...
@@ -752,7 +784,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -752,7 +784,6 @@ namespace WindBot.Game.AI.Decks
return
true
;
return
true
;
}
}
return
false
;
return
false
;
}
}
else
else
{
{
...
@@ -761,12 +792,9 @@ namespace WindBot.Game.AI.Decks
...
@@ -761,12 +792,9 @@ namespace WindBot.Game.AI.Decks
CardId
.
ShaddollSquamata
,
CardId
.
ShaddollSquamata
,
CardId
.
FairyTailSnow
,
CardId
.
FairyTailSnow
,
});
});
}
}
return
true
;
return
true
;
}
}
public
bool
Hand_act_eff
()
public
bool
Hand_act_eff
()
...
@@ -823,6 +851,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -823,6 +851,8 @@ namespace WindBot.Game.AI.Decks
return
true
;
return
true
;
}
}
}
}
public
bool
CrystronNeedlefibersp
()
public
bool
CrystronNeedlefibersp
()
{
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
ElShaddollConstruct
)
||
if
(
Bot
.
HasInMonstersZone
(
CardId
.
ElShaddollConstruct
)
||
...
@@ -879,6 +909,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -879,6 +909,7 @@ namespace WindBot.Game.AI.Decks
return
false
;
return
false
;
}
}
private
bool
ScarlightRedDragoneff
()
private
bool
ScarlightRedDragoneff
()
{
{
IList
<
ClientCard
>
targets
=
new
List
<
ClientCard
>();
IList
<
ClientCard
>
targets
=
new
List
<
ClientCard
>();
...
@@ -891,6 +922,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -891,6 +922,8 @@ namespace WindBot.Game.AI.Decks
}
}
return
false
;
return
false
;
}
}
private
bool
CrystalWingSynchroDragoneff
()
private
bool
CrystalWingSynchroDragoneff
()
{
{
return
Duel
.
LastChainPlayer
!=
0
;
return
Duel
.
LastChainPlayer
!=
0
;
...
@@ -926,7 +959,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -926,7 +959,6 @@ namespace WindBot.Game.AI.Decks
}*/
}*/
return
false
;
return
false
;
}
}
private
bool
BlackRoseMoonlightDragoneff
()
private
bool
BlackRoseMoonlightDragoneff
()
{
{
...
@@ -941,6 +973,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -941,6 +973,8 @@ namespace WindBot.Game.AI.Decks
return
false
;
return
false
;
}
}
private
bool
RedWyverneff
()
private
bool
RedWyverneff
()
{
{
IList
<
ClientCard
>
check
=
Enemy
.
MonsterZone
;
IList
<
ClientCard
>
check
=
Enemy
.
MonsterZone
;
...
@@ -957,8 +991,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -957,8 +991,6 @@ namespace WindBot.Game.AI.Decks
return
false
;
return
false
;
}
}
private
bool
CoralDragoneff
()
private
bool
CoralDragoneff
()
{
{
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
if
(
Card
.
Location
!=
CardLocation
.
MonsterZone
)
...
...
Game/AI/DefaultExecutor.cs
View file @
b2bf309b
...
@@ -307,9 +307,10 @@ namespace WindBot.Game.AI
...
@@ -307,9 +307,10 @@ namespace WindBot.Game.AI
if
(
LastChainCard
==
null
)
if
(
LastChainCard
==
null
)
return
false
;
return
false
;
if
(
LastChainCard
.
Controller
!=
1
||
LastChainCard
.
Location
!=
CardLocation
.
MonsterZone
||
!
DefaultUniqueTrap
())
return
false
;
AI
.
SelectCard
(
LastChainCard
);
AI
.
SelectCard
(
LastChainCard
);
return
LastChainCard
.
Controller
==
1
&&
LastChainCard
.
Location
==
CardLocation
.
MonsterZone
&&
DefaultUniqueTrap
()
;
return
true
;
}
}
/// <summary>
/// <summary>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment