Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
Windbot-408
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
神之吹息
Windbot-408
Commits
ae35f2ac
Commit
ae35f2ac
authored
May 29, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable not implemented selectplace releated stuff
parent
f3e2b847
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
19 deletions
+26
-19
Game/AI/Decks/DarkMagicianExecutor.cs
Game/AI/Decks/DarkMagicianExecutor.cs
+26
-19
No files found.
Game/AI/Decks/DarkMagicianExecutor.cs
View file @
ae35f2ac
...
@@ -162,6 +162,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -162,6 +162,7 @@ namespace WindBot.Game.AI.Decks
private
void
EternalSoulSelect
()
private
void
EternalSoulSelect
()
{
{
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
/*
if (Enemy.HasInMonstersZone(CardId.MekkKnightMorningStar))
if (Enemy.HasInMonstersZone(CardId.MekkKnightMorningStar))
{
{
int MekkKnightZone = 0;
int MekkKnightZone = 0;
...
@@ -209,7 +210,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -209,7 +210,7 @@ namespace WindBot.Game.AI.Decks
}
}
}
}
}
}
*/
}
}
int
attackerzone
=
-
1
;
int
attackerzone
=
-
1
;
int
defenderzone
=
-
1
;
int
defenderzone
=
-
1
;
...
@@ -335,7 +336,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -335,7 +336,7 @@ namespace WindBot.Game.AI.Decks
if
(
Enemy
.
HasInMonstersZone
(
CardId
.
ElShaddollWinda
))
return
false
;
if
(
Enemy
.
HasInMonstersZone
(
CardId
.
ElShaddollWinda
))
return
false
;
if
(
maxxc_used
)
return
false
;
if
(
maxxc_used
)
return
false
;
if
(
WindwitchGlassBelleff_used
)
return
false
;
if
(
WindwitchGlassBelleff_used
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
,
1
);
//
AI.SelectPlace(Zones.z2, 1);
if
(
Bot
.
GetRemainingCount
(
CardId
.
WindwitchGlassBell
,
2
)
>=
1
)
if
(
Bot
.
GetRemainingCount
(
CardId
.
WindwitchGlassBell
,
2
)
>=
1
)
AI
.
SelectCard
(
CardId
.
WindwitchGlassBell
);
AI
.
SelectCard
(
CardId
.
WindwitchGlassBell
);
else
if
(
Bot
.
HasInHand
(
CardId
.
WindwitchGlassBell
))
else
if
(
Bot
.
HasInHand
(
CardId
.
WindwitchGlassBell
))
...
@@ -383,7 +384,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -383,7 +384,7 @@ namespace WindBot.Game.AI.Decks
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchSnowBell
))
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchSnowBell
))
{
{
AI
.
SelectPlace
(
Zones
.
z5
,
Zones
.
ExtraMonsterZones
);
//
AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones);
AI
.
SelectCard
(
new
[]
{
CardId
.
WindwitchIceBell
,
CardId
.
WindwitchGlassBell
});
AI
.
SelectCard
(
new
[]
{
CardId
.
WindwitchIceBell
,
CardId
.
WindwitchGlassBell
});
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
return
true
;
...
@@ -425,7 +426,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -425,7 +426,7 @@ namespace WindBot.Game.AI.Decks
{
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchSnowBell
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchWinterBell
))
if
(
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchSnowBell
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchWinterBell
))
{
{
AI
.
SelectPlace
(
Zones
.
z5
,
Zones
.
ExtraMonsterZones
);
//
AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones);
plan_A
=
true
;
plan_A
=
true
;
return
true
;
return
true
;
}
}
...
@@ -904,7 +905,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -904,7 +905,7 @@ namespace WindBot.Game.AI.Decks
{
{
if
(
Card
.
Location
==
CardLocation
.
Hand
)
if
(
Card
.
Location
==
CardLocation
.
Hand
)
{
{
AI
.
SelectPlace
(
Zones
.
z2
,
2
);
//
AI.SelectPlace(Zones.z2, 2);
if
(
Bot
.
LifePoints
<=
4000
)
if
(
Bot
.
LifePoints
<=
4000
)
return
true
;
return
true
;
return
UniqueFaceupSpell
();
return
UniqueFaceupSpell
();
...
@@ -936,7 +937,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -936,7 +937,7 @@ namespace WindBot.Game.AI.Decks
if
(
Duel
.
LastChainPlayer
==
0
)
return
false
;
if
(
Duel
.
LastChainPlayer
==
0
)
return
false
;
ClientCard
target
=
null
;
ClientCard
target
=
null
;
bool
soul_exist
=
false
;
bool
soul_exist
=
false
;
AI
.
SelectPlace
(
Zones
.
z2
,
2
);
//
AI.SelectPlace(Zones.z2, 2);
foreach
(
ClientCard
m
in
Bot
.
GetSpells
())
foreach
(
ClientCard
m
in
Bot
.
GetSpells
())
{
{
if
(
m
.
Id
==
CardId
.
EternalSoul
&&
m
.
IsFaceup
())
if
(
m
.
Id
==
CardId
.
EternalSoul
&&
m
.
IsFaceup
())
...
@@ -1050,19 +1051,19 @@ namespace WindBot.Game.AI.Decks
...
@@ -1050,19 +1051,19 @@ namespace WindBot.Game.AI.Decks
private
bool
TheEyeOfTimaeuseff
()
private
bool
TheEyeOfTimaeuseff
()
{
{
AI
.
SelectPlace
(
Zones
.
z2
,
2
);
//
AI.SelectPlace(Zones.z2, 2);
return
true
;
return
true
;
}
}
private
bool
UpstartGoblineff
()
private
bool
UpstartGoblineff
()
{
{
AI
.
SelectPlace
(
Zones
.
z2
,
2
);
//
AI.SelectPlace(Zones.z2, 2);
return
true
;
return
true
;
}
}
private
bool
SpellbookOfSecreteff
()
private
bool
SpellbookOfSecreteff
()
{
{
if
(
lockbird_used
)
return
false
;
if
(
lockbird_used
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
,
2
);
//
AI.SelectPlace(Zones.z2, 2);
Secret_used
=
true
;
Secret_used
=
true
;
if
(
Bot
.
HasInHand
(
CardId
.
SpellbookMagicianOfProphecy
))
if
(
Bot
.
HasInHand
(
CardId
.
SpellbookMagicianOfProphecy
))
AI
.
SelectCard
(
CardId
.
SpellbookOfKnowledge
);
AI
.
SelectCard
(
CardId
.
SpellbookOfKnowledge
);
...
@@ -1083,7 +1084,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1083,7 +1084,7 @@ namespace WindBot.Game.AI.Decks
if
(
lockbird_used
)
return
false
;
if
(
lockbird_used
)
return
false
;
if
(
Bot
.
HasInSpellZone
(
CardId
.
LllusionMagic
)
&&
count
<
2
)
if
(
Bot
.
HasInSpellZone
(
CardId
.
LllusionMagic
)
&&
count
<
2
)
return
false
;
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
,
2
);
//
AI.SelectPlace(Zones.z2, 2);
if
(
Bot
.
HasInMonstersZone
(
CardId
.
SpellbookMagicianOfProphecy
)
||
if
(
Bot
.
HasInMonstersZone
(
CardId
.
SpellbookMagicianOfProphecy
)
||
Bot
.
HasInMonstersZone
(
CardId
.
MagiciansRod
)
||
Bot
.
HasInMonstersZone
(
CardId
.
MagiciansRod
)
||
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)
||
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)
||
...
@@ -1125,7 +1126,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1125,7 +1126,7 @@ namespace WindBot.Game.AI.Decks
{
{
if
(
Bot
.
HasInSpellZone
(
CardId
.
LllusionMagic
)
&&
count
<
2
)
if
(
Bot
.
HasInSpellZone
(
CardId
.
LllusionMagic
)
&&
count
<
2
)
return
false
;
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
,
2
);
//
AI.SelectPlace(Zones.z2, 2);
if
(
Bot
.
HasInMonstersZone
(
CardId
.
SpellbookMagicianOfProphecy
)
||
if
(
Bot
.
HasInMonstersZone
(
CardId
.
SpellbookMagicianOfProphecy
)
||
Bot
.
HasInMonstersZone
(
CardId
.
MagiciansRod
)
||
Bot
.
HasInMonstersZone
(
CardId
.
MagiciansRod
)
||
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)
||
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)
||
...
@@ -1180,7 +1181,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1180,7 +1181,7 @@ namespace WindBot.Game.AI.Decks
private
bool
ApprenticeLllusionMagiciansp
()
private
bool
ApprenticeLllusionMagiciansp
()
{
{
AI
.
SelectPlace
(
Zones
.
z2
,
1
);
//
AI.SelectPlace(Zones.z2, 1);
if
(
Bot
.
HasInHand
(
CardId
.
DarkMagician
)
&&
!
Bot
.
HasInSpellZone
(
CardId
.
MagicianNavigation
))
if
(
Bot
.
HasInHand
(
CardId
.
DarkMagician
)
&&
!
Bot
.
HasInSpellZone
(
CardId
.
MagicianNavigation
))
{
{
if
(
Bot
.
GetRemainingCount
(
CardId
.
DarkMagician
,
3
)
>
0
)
if
(
Bot
.
GetRemainingCount
(
CardId
.
DarkMagician
,
3
)
>
0
)
...
@@ -1288,7 +1289,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1288,7 +1289,7 @@ namespace WindBot.Game.AI.Decks
}
}
private
bool
SpellbookMagicianOfProphecysummon
()
private
bool
SpellbookMagicianOfProphecysummon
()
{
{
AI
.
SelectPlace
(
Zones
.
z2
,
1
);
//
AI.SelectPlace(Zones.z2, 1);
if
(
lockbird_used
)
return
false
;
if
(
lockbird_used
)
return
false
;
if
(
Spellbook_summon
)
if
(
Spellbook_summon
)
{
{
...
@@ -1303,14 +1304,14 @@ namespace WindBot.Game.AI.Decks
...
@@ -1303,14 +1304,14 @@ namespace WindBot.Game.AI.Decks
private
bool
MagiciansRodsummon
()
private
bool
MagiciansRodsummon
()
{
{
if
(
lockbird_used
)
return
false
;
if
(
lockbird_used
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
,
1
);
//
AI.SelectPlace(Zones.z2, 1);
if
(
Rod_summon
)
return
true
;
if
(
Rod_summon
)
return
true
;
return
true
;
return
true
;
}
}
private
bool
DarkMagicAttackeff
()
private
bool
DarkMagicAttackeff
()
{
{
AI
.
SelectPlace
(
Zones
.
z1
,
2
);
//
AI.SelectPlace(Zones.z1, 2);
return
DefaultHarpiesFeatherDusterFirst
();
return
DefaultHarpiesFeatherDusterFirst
();
}
}
private
bool
DarkMagicInheritanceeff
()
private
bool
DarkMagicInheritanceeff
()
...
@@ -1329,7 +1330,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1329,7 +1330,7 @@ namespace WindBot.Game.AI.Decks
}
}
if
(
count
>=
2
)
if
(
count
>=
2
)
{
{
AI
.
SelectPlace
(
Zones
.
z2
,
2
);
//
AI.SelectPlace(Zones.z2, 2);
AI
.
SelectCard
(
spell
);
AI
.
SelectCard
(
spell
);
if
(
Bot
.
HasInHandOrInSpellZone
(
CardId
.
EternalSoul
)
&&
Bot
.
HasInHandOrInSpellZone
(
CardId
.
DarkMagicalCircle
))
if
(
Bot
.
HasInHandOrInSpellZone
(
CardId
.
EternalSoul
)
&&
Bot
.
HasInHandOrInSpellZone
(
CardId
.
DarkMagicalCircle
))
if
(
Bot
.
GetRemainingCount
(
CardId
.
DarkMagician
,
3
)
>=
2
&&
!
Bot
.
HasInHandOrInSpellZoneOrInGraveyard
(
CardId
.
LllusionMagic
))
if
(
Bot
.
GetRemainingCount
(
CardId
.
DarkMagician
,
3
)
>=
2
&&
!
Bot
.
HasInHandOrInSpellZoneOrInGraveyard
(
CardId
.
LllusionMagic
))
...
@@ -1549,7 +1550,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1549,7 +1550,7 @@ namespace WindBot.Game.AI.Decks
if
(
lockbird_used
)
return
false
;
if
(
lockbird_used
)
return
false
;
if
(!
plan_A
&&
(
Bot
.
HasInGraveyard
(
CardId
.
WindwitchGlassBell
)
||
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)))
if
(!
plan_A
&&
(
Bot
.
HasInGraveyard
(
CardId
.
WindwitchGlassBell
)
||
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)))
return
false
;
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
,
1
);
//
AI.SelectPlace(Zones.z2, 1);
if
(
GlassBell_summon
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchIceBell
)
&&
if
(
GlassBell_summon
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchIceBell
)
&&
!
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
))
!
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
))
return
true
;
return
true
;
...
@@ -1563,7 +1564,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1563,7 +1564,7 @@ namespace WindBot.Game.AI.Decks
if
(
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
2500
,
false
)
&&
if
(
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
2500
,
false
)
&&
!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
ApprenticeLllusionMagician
))
!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
ApprenticeLllusionMagician
))
{
{
AI
.
SelectPlace
(
Zones
.
z5
,
Zones
.
ExtraMonsterZones
);
//
AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
return
true
;
}
}
...
@@ -1588,7 +1589,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1588,7 +1589,7 @@ namespace WindBot.Game.AI.Decks
if
(
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
2500
,
false
)
&&
if
(
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
2500
,
false
)
&&
!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
ApprenticeLllusionMagician
))
!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
ApprenticeLllusionMagician
))
{
{
AI
.
SelectPlace
(
Zones
.
z5
,
Zones
.
ExtraMonsterZones
);
//
AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
return
true
;
}
}
...
@@ -1789,6 +1790,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1789,6 +1790,7 @@ namespace WindBot.Game.AI.Decks
public
override
bool
OnPreBattleBetween
(
ClientCard
attacker
,
ClientCard
defender
)
public
override
bool
OnPreBattleBetween
(
ClientCard
attacker
,
ClientCard
defender
)
{
{
/*
if (Enemy.HasInMonstersZone(CardId.MekkKnightMorningStar))
if (Enemy.HasInMonstersZone(CardId.MekkKnightMorningStar))
{
{
attackerzone = -1;
attackerzone = -1;
...
@@ -1811,6 +1813,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1811,6 +1813,7 @@ namespace WindBot.Game.AI.Decks
return false;
return false;
}
}
}
}
*/
//Logger.DebugWriteLine("@@@@@@@@@@@@@@@@@@@ApprenticeLllusionMagician= " + ApprenticeLllusionMagician_count);
//Logger.DebugWriteLine("@@@@@@@@@@@@@@@@@@@ApprenticeLllusionMagician= " + ApprenticeLllusionMagician_count);
if
(
Bot
.
HasInSpellZone
(
CardId
.
OddEyesWingDragon
))
if
(
Bot
.
HasInSpellZone
(
CardId
.
OddEyesWingDragon
))
big_attack
=
true
;
big_attack
=
true
;
...
@@ -1857,6 +1860,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1857,6 +1860,7 @@ namespace WindBot.Game.AI.Decks
return
true
;
return
true
;
return
base
.
OnPreBattleBetween
(
attacker
,
defender
);
return
base
.
OnPreBattleBetween
(
attacker
,
defender
);
}
}
/*
public override BattlePhaseAction OnSelectAttackTarget(ClientCard attacker, IList<ClientCard> defenders)
public override BattlePhaseAction OnSelectAttackTarget(ClientCard attacker, IList<ClientCard> defenders)
{
{
for (int i = 0; i < defenders.Count; ++i)
for (int i = 0; i < defenders.Count; ++i)
...
@@ -1884,6 +1888,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -1884,6 +1888,8 @@ namespace WindBot.Game.AI.Decks
defenderzone = -1;
defenderzone = -1;
return base.OnSelectAttackTarget(attacker,defenders);
return base.OnSelectAttackTarget(attacker,defenders);
}
}
*/
/*
public override ClientCard OnSelectAttacker(IList<ClientCard> attackers, IList<ClientCard> defenders)
public override ClientCard OnSelectAttacker(IList<ClientCard> attackers, IList<ClientCard> defenders)
{
{
for (int i = 0; i < attackers.Count; ++i)
for (int i = 0; i < attackers.Count; ++i)
...
@@ -1918,6 +1924,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1918,6 +1924,7 @@ namespace WindBot.Game.AI.Decks
}
}
return base.OnSelectAttacker(attackers,defenders);
return base.OnSelectAttacker(attackers,defenders);
}
}
*/
public
bool
MonsterRepos
()
public
bool
MonsterRepos
()
{
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
OddEyesWingDragon
)
||
if
(
Bot
.
HasInMonstersZone
(
CardId
.
OddEyesWingDragon
)
||
...
...
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