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
Tang Xinwei
windbot
Commits
e6e54039
Commit
e6e54039
authored
Aug 30, 2018
by
handsomekiwi
Committed by
mercury233
Aug 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Phantasm deck (#94)
parent
4ffb7f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
33 deletions
+18
-33
Game/AI/Decks/PhantasmExecutor.cs
Game/AI/Decks/PhantasmExecutor.cs
+18
-33
No files found.
Game/AI/Decks/PhantasmExecutor.cs
View file @
e6e54039
...
...
@@ -61,7 +61,7 @@ namespace WindBot.Game.AI.Decks
:
base
(
ai
,
duel
)
{
//counter
//AddExecutor(ExecutorType.ToBattlePhase, ToBattlePhaseeff
);
AddExecutor
(
ExecutorType
.
GoToBattlePhase
,
GoToBattlePhase
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
StarlightRoad
,
PreventFeatherDustereff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
TheHugeRevolutionIsOver
,
PreventFeatherDustereff
);
AddExecutor
(
ExecutorType
.
Activate
,
_CardId
.
GhostBelle
,
DefaultGhostBelleAndHauntedMansion
);
...
...
@@ -100,7 +100,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
EaterOfMillions
,
EaterOfMillionseff
);
//other
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Scapegoat
,
Scapegoateff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Scapegoat
,
DefaultScapegoat
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
SeaStealthAttack
,
NoSetAlreadyDone
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
StarlightRoad
,
StarlightRoadset
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
TheHugeRevolutionIsOver
,
TheHugeRevolutionIsOverset
);
...
...
@@ -129,18 +129,17 @@ namespace WindBot.Game.AI.Decks
return
Duel
.
LastChainPlayer
==
1
;
}
/* private bool ToBattlePhaseeff
()
private
bool
GoToBattlePhase
()
{
if
(
Enemy
.
GetMonsterCount
()
==
0
)
{
if
(
AI
.
Utils
.
GetTotalAttackingMonsterAttack
(
0
)
>=
Enemy
.
LifePoints
)
{
AI.ManualPhaseChange = true;
{
return
true
;
}
}
return
false
;
}
*/
}
private
bool
PhantasmSprialBattleeff
()
{
...
...
@@ -154,8 +153,13 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
CardId
.
EternalSoul
);
return
UniqueFaceupSpell
();
}
if
(
Bot
.
GetMonsterCount
()>
0
&&
!
Bot
.
HasInSpellZone
(
CardId
.
SeaStealthAttack
)
&&
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
2000
,
true
)
&&
Duel
.
Phase
==
DuelPhase
.
BattleStart
)
if
(
Bot
.
UnderAttack
&&
Bot
.
BattlingMonster
!=
null
&&
Bot
.
BattlingMonster
.
IsCode
(
CardId
.
MegalosmasherX
))
{
AI
.
SelectCard
(
Enemy
.
BattlingMonster
);
return
UniqueFaceupSpell
();
}
if
(
Bot
.
GetMonsterCount
()
>
0
&&
!
Bot
.
HasInSpellZone
(
CardId
.
SeaStealthAttack
)
&&
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
2000
,
false
)
&&
Duel
.
Phase
==
DuelPhase
.
BattleStart
)
{
AI
.
SelectCard
(
AI
.
Utils
.
GetBestEnemyMonster
(
true
,
true
));
return
UniqueFaceupSpell
();
...
...
@@ -257,7 +261,7 @@ namespace WindBot.Game.AI.Decks
private
bool
CardOfDemiseeff
()
{
//
if (DefaultSpellWillBeNegated()) return false;
if
(
DefaultSpellWillBeNegated
())
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
);
if
(
Card
.
Location
==
CardLocation
.
Hand
)
{
...
...
@@ -280,7 +284,7 @@ namespace WindBot.Game.AI.Decks
private
bool
FossilDigeff
()
{
//
if (DefaultSpellWillBeNegated()) return false;
if
(
DefaultSpellWillBeNegated
())
return
false
;
if
(
CardOfDemiseeff_used
&&
summon_used
)
return
false
;
return
true
;
}
...
...
@@ -334,14 +338,14 @@ namespace WindBot.Game.AI.Decks
}
private
bool
Terraformingeff
()
{
//
if (DefaultSpellWillBeNegated()) return false;
if
(
DefaultSpellWillBeNegated
())
return
false
;
if
(
CardOfDemiseeff_used
&&
Bot
.
HasInSpellZone
(
CardId
.
PacifisThePhantasmCity
))
return
false
;
return
true
;
}
private
bool
PacifisThePhantasmCityeff
()
{
//
if (DefaultSpellWillBeNegated()) return false;
if
(
DefaultSpellWillBeNegated
())
return
false
;
if
(
Card
.
Location
==
CardLocation
.
Hand
)
{
if
(
Bot
.
HasInSpellZone
(
CardId
.
PacifisThePhantasmCity
))
...
...
@@ -615,26 +619,7 @@ namespace WindBot.Game.AI.Decks
private
bool
PotOfDesireseff
()
{
return
Bot
.
Deck
.
Count
>=
18
;
}
private
bool
Scapegoateff
()
{
// if (DefaultSpellWillBeNegated()) return false;
if
(
Duel
.
Player
==
0
)
return
false
;
if
(
Duel
.
Phase
==
DuelPhase
.
End
)
return
true
;
if
(
DefaultOnBecomeTarget
())
return
true
;
if
(
Duel
.
Phase
>
DuelPhase
.
Main1
&&
Duel
.
Phase
<
DuelPhase
.
Main2
)
{
int
total_atk
=
0
;
List
<
ClientCard
>
enemy_monster
=
Enemy
.
GetMonsters
();
foreach
(
ClientCard
m
in
enemy_monster
)
{
if
(
m
.
IsAttack
())
total_atk
+=
m
.
Attack
;
}
if
(
total_atk
>=
Bot
.
LifePoints
)
return
true
;
}
return
false
;
}
}
private
bool
StarlightRoadset
()
{
...
...
@@ -745,4 +730,4 @@ namespace WindBot.Game.AI.Decks
}
}
\ No newline at end of file
}
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