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
HiiragiGuardians
windbot
Commits
d5d933e3
Commit
d5d933e3
authored
Nov 04, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix atk 0 monster attack
parent
605c2839
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
28 deletions
+29
-28
Game/AI/Decks/BlueEyesExecutor.cs
Game/AI/Decks/BlueEyesExecutor.cs
+0
-5
Game/AI/Decks/MokeyMokeyExecutor.cs
Game/AI/Decks/MokeyMokeyExecutor.cs
+0
-5
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+2
-0
Game/AI/Executor.cs
Game/AI/Executor.cs
+27
-18
No files found.
Game/AI/Decks/BlueEyesExecutor.cs
View file @
d5d933e3
...
@@ -231,11 +231,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -231,11 +231,6 @@ namespace WindBot.Game.AI.Decks
return
null
;
return
null
;
}
}
public
override
bool
OnPreBattleBetween
(
ClientCard
attacker
,
ClientCard
defender
)
{
return
attacker
.
Attack
>
0
&&
base
.
OnPreBattleBetween
(
attacker
,
defender
);
}
private
bool
DragonShrineEffect
()
private
bool
DragonShrineEffect
()
{
{
AI
.
SelectCard
(
new
[]
AI
.
SelectCard
(
new
[]
...
...
Game/AI/Decks/MokeyMokeyExecutor.cs
View file @
d5d933e3
...
@@ -33,10 +33,5 @@ namespace WindBot.Game.AI.Decks
...
@@ -33,10 +33,5 @@ namespace WindBot.Game.AI.Decks
else
else
return
base
.
OnRockPaperScissors
();
return
base
.
OnRockPaperScissors
();
}
}
public
override
bool
OnPreBattleBetween
(
ClientCard
attacker
,
ClientCard
defender
)
{
return
attacker
.
Attack
>
0
&&
base
.
OnPreBattleBetween
(
attacker
,
defender
);
}
}
}
}
}
\ No newline at end of file
Game/AI/DefaultExecutor.cs
View file @
d5d933e3
...
@@ -50,6 +50,8 @@ namespace WindBot.Game.AI
...
@@ -50,6 +50,8 @@ namespace WindBot.Game.AI
/// <returns>true if the attack can be done.</returns>
/// <returns>true if the attack can be done.</returns>
public
override
bool
OnPreBattleBetween
(
ClientCard
attacker
,
ClientCard
defender
)
public
override
bool
OnPreBattleBetween
(
ClientCard
attacker
,
ClientCard
defender
)
{
{
if
(
attacker
.
RealPower
<=
0
)
return
false
;
if
(!
attacker
.
IsMonsterHasPreventActivationEffectInBattle
())
if
(!
attacker
.
IsMonsterHasPreventActivationEffectInBattle
())
{
{
...
...
Game/AI/Executor.cs
View file @
d5d933e3
...
@@ -62,8 +62,16 @@ namespace WindBot.Game.AI
...
@@ -62,8 +62,16 @@ namespace WindBot.Game.AI
return
AI
.
ToMainPhase2
();
return
AI
.
ToMainPhase2
();
if
(
defenders
.
Count
==
0
)
if
(
defenders
.
Count
==
0
)
return
AI
.
Attack
(
attackers
[
0
],
null
);
{
for
(
int
i
=
attackers
.
Count
-
1
;
i
>=
0
;
--
i
)
{
ClientCard
attacker
=
attackers
[
i
];
if
(
attacker
.
Attack
>
0
)
return
AI
.
Attack
(
attacker
,
null
);
}
}
else
{
for
(
int
i
=
defenders
.
Count
-
1
;
i
>=
0
;
--
i
)
for
(
int
i
=
defenders
.
Count
-
1
;
i
>=
0
;
--
i
)
{
{
ClientCard
defender
=
defenders
[
i
];
ClientCard
defender
=
defenders
[
i
];
...
@@ -85,9 +93,10 @@ namespace WindBot.Game.AI
...
@@ -85,9 +93,10 @@ namespace WindBot.Game.AI
if
(
attacker
.
CanDirectAttack
)
if
(
attacker
.
CanDirectAttack
)
return
AI
.
Attack
(
attacker
,
null
);
return
AI
.
Attack
(
attacker
,
null
);
}
}
}
if
(!
Battle
.
CanMainPhaseTwo
)
if
(!
Battle
.
CanMainPhaseTwo
)
return
AI
.
Attack
(
attackers
[
attackers
.
Count
-
1
],
defenders
[
0
]);
return
AI
.
Attack
(
attackers
[
0
],
(
defenders
.
Count
==
0
)
?
null
:
defenders
[
0
]);
return
AI
.
ToMainPhase2
();
return
AI
.
ToMainPhase2
();
}
}
...
...
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