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
9256e961
Commit
9256e961
authored
Apr 27, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor default changes
parent
0a10e115
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
Game/AI/AIUtil.cs
Game/AI/AIUtil.cs
+1
-1
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+11
-3
No files found.
Game/AI/AIUtil.cs
View file @
9256e961
...
...
@@ -104,7 +104,7 @@ namespace WindBot.Game.AI
public
ClientCard
GetOneEnemyBetterThanValue
(
int
value
,
bool
onlyATK
=
false
,
bool
canBeTarget
=
false
)
{
return
Enemy
.
MonsterZone
.
GetMonsters
()
.
FirstOrDefault
(
card
=>
card
.
GetDefensePower
()
>
value
&&
(!
onlyATK
||
card
.
IsAttack
())
&&
(!
canBeTarget
||
!
card
.
IsShouldNotBeTarget
()));
.
FirstOrDefault
(
card
=>
card
.
GetDefensePower
()
>
=
value
&&
(!
onlyATK
||
card
.
IsAttack
())
&&
(!
canBeTarget
||
!
card
.
IsShouldNotBeTarget
()));
}
public
ClientCard
GetOneEnemyBetterThanMyBest
(
bool
onlyATK
=
false
,
bool
canBeTarget
=
false
)
...
...
Game/AI/DefaultExecutor.cs
View file @
9256e961
...
...
@@ -458,9 +458,11 @@ namespace WindBot.Game.AI
/// Default InfiniteImpermanence effect
/// </summary>
protected
bool
DefaultInfiniteImpermanence
()
{
{
// TODO: disable s & t
return
DefaultBreakthroughSkill
();
if
(!
DefaultUniqueTrap
())
return
false
;
return
DefaultDisableMonster
();
}
/// <summary>
/// Chain the enemy monster, or disable monster like Rescue Rabbit.
...
...
@@ -469,7 +471,13 @@ namespace WindBot.Game.AI
{
if
(!
DefaultUniqueTrap
())
return
false
;
return
DefaultDisableMonster
();
}
/// <summary>
/// Chain the enemy monster, or disable monster like Rescue Rabbit.
/// </summary>
protected
bool
DefaultDisableMonster
()
{
if
(
Duel
.
Player
==
1
)
{
ClientCard
target
=
Enemy
.
MonsterZone
.
GetShouldBeDisabledBeforeItUseEffectMonster
();
...
...
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