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
nanahira
windbot
Commits
4b4220b0
Commit
4b4220b0
authored
May 23, 2023
by
wind2009
Committed by
GitHub
May 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Exosister deck (#163)
parent
d7c88bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
Game/AI/Decks/ExosisterExecutor.cs
Game/AI/Decks/ExosisterExecutor.cs
+18
-4
No files found.
Game/AI/Decks/ExosisterExecutor.cs
View file @
4b4220b0
...
@@ -1950,7 +1950,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1950,7 +1950,7 @@ namespace WindBot.Game.AI.Decks
}
}
// become target
// become target
if
(
DefaultOnBecomeTarget
(
)
||
(
Duel
.
CurrentChain
.
Any
(
c
=>
c
==
Card
)
&&
Duel
.
LastChainPlayer
!=
0
))
if
(
(
DefaultOnBecomeTarget
()
&&
!
Util
.
ChainContainsCard
(
_CardId
.
EvenlyMatched
)
)
||
(
Duel
.
CurrentChain
.
Any
(
c
=>
c
==
Card
)
&&
Duel
.
LastChainPlayer
!=
0
))
{
{
targetedMagnificaList
.
Add
(
Card
);
targetedMagnificaList
.
Add
(
Card
);
transformDestList
.
AddRange
(
new
List
<
int
>{
CardId
.
ExosistersMagnifica
,
CardId
.
ExosisterMikailis
,
CardId
.
ExosisterGibrine
,
CardId
.
ExosisterKaspitell
,
CardId
.
ExosisterAsophiel
});
transformDestList
.
AddRange
(
new
List
<
int
>{
CardId
.
ExosistersMagnifica
,
CardId
.
ExosisterMikailis
,
CardId
.
ExosisterGibrine
,
CardId
.
ExosisterKaspitell
,
CardId
.
ExosisterAsophiel
});
...
@@ -2025,7 +2025,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -2025,7 +2025,7 @@ namespace WindBot.Game.AI.Decks
public
bool
ExosisterPaxActivate
()
public
bool
ExosisterPaxActivate
()
{
{
if
(
potActivate
)
if
(
potActivate
||
Bot
.
LifePoints
<=
800
)
{
{
return
false
;
return
false
;
}
}
...
@@ -2198,7 +2198,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -2198,7 +2198,7 @@ namespace WindBot.Game.AI.Decks
public
bool
ExosisterPaxActivateForEndSearch
()
public
bool
ExosisterPaxActivateForEndSearch
()
{
{
if
(
potActivate
)
if
(
potActivate
||
Bot
.
LifePoints
<=
800
)
{
{
return
false
;
return
false
;
}
}
...
@@ -2230,6 +2230,10 @@ namespace WindBot.Game.AI.Decks
...
@@ -2230,6 +2230,10 @@ namespace WindBot.Game.AI.Decks
public
bool
ExosisterArmentActivate
()
public
bool
ExosisterArmentActivate
()
{
{
if
(
Bot
.
LifePoints
<=
800
)
{
return
false
;
}
ClientCard
activateTarget
=
null
;
ClientCard
activateTarget
=
null
;
if
(
Duel
.
Player
==
0
)
if
(
Duel
.
Player
==
0
)
...
@@ -2366,6 +2370,11 @@ namespace WindBot.Game.AI.Decks
...
@@ -2366,6 +2370,11 @@ namespace WindBot.Game.AI.Decks
public
bool
ExosisterVadisActivate
()
public
bool
ExosisterVadisActivate
()
{
{
if
(
Bot
.
LifePoints
<=
800
)
{
return
false
;
}
List
<
int
>
checkListForSpSummon
=
new
List
<
int
>{
List
<
int
>
checkListForSpSummon
=
new
List
<
int
>{
CardId
.
ExosisterSophia
,
CardId
.
ExosisterIrene
,
CardId
.
ExosisterStella
,
CardId
.
ExosisterMartha
,
CardId
.
ExosisterElis
CardId
.
ExosisterSophia
,
CardId
.
ExosisterIrene
,
CardId
.
ExosisterStella
,
CardId
.
ExosisterMartha
,
CardId
.
ExosisterElis
};
};
...
@@ -2435,6 +2444,11 @@ namespace WindBot.Game.AI.Decks
...
@@ -2435,6 +2444,11 @@ namespace WindBot.Game.AI.Decks
public
bool
ExosisterReturniaActivate
()
public
bool
ExosisterReturniaActivate
()
{
{
if
(
Bot
.
LifePoints
<=
800
)
{
return
false
;
}
// banish problem card
// banish problem card
ClientCard
target
=
GetProblematicEnemyCard
(
true
);
ClientCard
target
=
GetProblematicEnemyCard
(
true
);
if
(
target
!=
null
&&
Duel
.
LastChainPlayer
!=
0
)
if
(
target
!=
null
&&
Duel
.
LastChainPlayer
!=
0
)
...
@@ -2463,7 +2477,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -2463,7 +2477,7 @@ namespace WindBot.Game.AI.Decks
// dump banish
// dump banish
target
=
GetBestEnemyCard
(
false
,
true
,
true
);
target
=
GetBestEnemyCard
(
false
,
true
,
true
);
bool
check1
=
DefaultOnBecomeTarget
()
&&
target
.
Id
!=
_CardId
.
EvenlyMatched
;
bool
check1
=
DefaultOnBecomeTarget
()
&&
target
!=
null
&&
(
target
.
Location
!=
CardLocation
.
Onfield
||
target
.
Id
!=
_CardId
.
EvenlyMatched
)
;
bool
check2
=
Bot
.
UnderAttack
;
bool
check2
=
Bot
.
UnderAttack
;
bool
check3
=
(
Duel
.
Player
==
1
&&
Duel
.
Phase
==
DuelPhase
.
End
&&
Duel
.
LastChainPlayer
!=
0
&&
target
!=
null
&&
target
.
Location
!=
CardLocation
.
Grave
);
bool
check3
=
(
Duel
.
Player
==
1
&&
Duel
.
Phase
==
DuelPhase
.
End
&&
Duel
.
LastChainPlayer
!=
0
&&
target
!=
null
&&
target
.
Location
!=
CardLocation
.
Grave
);
bool
check4
=
(
Duel
.
Player
==
1
&&
Enemy
.
GetMonsterCount
()
>=
2
&&
Duel
.
LastChainPlayer
!=
0
);
bool
check4
=
(
Duel
.
Player
==
1
&&
Enemy
.
GetMonsterCount
()
>=
2
&&
Duel
.
LastChainPlayer
!=
0
);
...
...
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