Commit f0581a87 authored by wind2009's avatar wind2009 Committed by GitHub

Fix Dogmatika (#174)

parent 34dd165e
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