Commit ab8378ee authored by mercury233's avatar mercury233

Merge branch 'master' of https://github.com/IceYGO/windbot

parents af155976 f0581a87
Pipeline #23812 passed with stages
in 2 minutes and 26 seconds
This diff is collapsed.
...@@ -125,6 +125,13 @@ namespace WindBot.Game.AI ...@@ -125,6 +125,13 @@ namespace WindBot.Game.AI
public const int VaylantzWorld_ShinraBansho = 49568943; public const int VaylantzWorld_ShinraBansho = 49568943;
public const int VaylantzWorld_KonigWissen = 75952542; public const int VaylantzWorld_KonigWissen = 75952542;
public const int DivineArsenalAAZEUS_SkyThunder = 90448279; public const int DivineArsenalAAZEUS_SkyThunder = 90448279;
public const int RescueACEHydrant = 37617348;
}
protected class _Setcode
{
public const int RescueACE = 0x18b;
} }
protected DefaultExecutor(GameAI ai, Duel duel) protected DefaultExecutor(GameAI ai, Duel duel)
...@@ -252,6 +259,9 @@ namespace WindBot.Game.AI ...@@ -252,6 +259,9 @@ namespace WindBot.Game.AI
if (defender.OwnTargets.Any(card => card.IsCode(_CardId.PhantomKnightsFogBlade) && !card.IsDisabled())) if (defender.OwnTargets.Any(card => card.IsCode(_CardId.PhantomKnightsFogBlade) && !card.IsDisabled()))
return false; return false;
if (defender.IsCode(_CardId.RescueACEHydrant) && !defender.IsDisabled() && Enemy.GetMonsters().Any(monster => monster.HasSetcode(_Setcode.RescueACE) && !monster.IsCode(_CardId.RescueACEHydrant)))
return false;
return true; return true;
} }
......
...@@ -82,6 +82,9 @@ namespace WindBot.Game ...@@ -82,6 +82,9 @@ namespace WindBot.Game
Name = Data.Name; Name = Data.Name;
if (Data.Alias != 0) if (Data.Alias != 0)
Alias = Data.Alias; Alias = Data.Alias;
} else {
Name = null;
Alias = 0;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment