Commit c2a74881 authored by mercury233's avatar mercury233

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

parents 494fe10b 30050897
...@@ -69,10 +69,15 @@ Name=尼亚 Deck=Trickstar Dialog=near.zh-CN ...@@ -69,10 +69,15 @@ Name=尼亚 Deck=Trickstar Dialog=near.zh-CN
淘气仙星卡组。 淘气仙星卡组。
AI_LV3 SUPPORT_NEW_MASTER_RULE AI_LV3 SUPPORT_NEW_MASTER_RULE
!尼亚-幻变骚灵
Name=尼亚 Deck=Altergeist Dialog=near.zh-CN
幻变骚灵卡组。
AI_LV3 SUPPORT_NEW_MASTER_RULE
!永远之魂-削血 !永远之魂-削血
Name=永远之魂 Deck=Burn Dialog=soul.zh-CN Name=永远之魂 Deck=Burn Dialog=soul.zh-CN
老式削血卡组。 老式削血卡组。
AI_LV1 SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE
!永远之魂-青蛙 !永远之魂-青蛙
Name=永远之魂 Deck=Frog Dialog=soul.zh-CN Name=永远之魂 Deck=Frog Dialog=soul.zh-CN
...@@ -109,11 +114,26 @@ Name=奇魔果 Deck=DarkMagician Dialog=kiwi.zh-TW ...@@ -109,11 +114,26 @@ Name=奇魔果 Deck=DarkMagician Dialog=kiwi.zh-TW
黑魔术师卡组。 黑魔术师卡组。
AI_LV3 SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE AI_LV3 SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE
!MAX龍果
Name=MAX龍果 Deck=BlueEyesMaxDragon Dialog=kiwi.zh-TW
青眼混沌极龙卡组。
AI_LV2 SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE
!幻煌果
Name=幻煌果 Deck=Phantasm Dialog=kiwi.zh-TW
幻煌龙卡组。
AI_LV3 SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE
!燃血鬥士 !燃血鬥士
Name=燃血鬥士 Deck=ChainBurn Dialog=kiwi.zh-TW Name=燃血鬥士 Deck=ChainBurn Dialog=kiwi.zh-TW
连锁烧卡组。 连锁烧卡组。
AI_LV3 SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE AI_LV3 SUPPORT_MASTER_RULE_3 SUPPORT_NEW_MASTER_RULE
!報社鬥士
Name=報社鬥士 Deck=GrenMajuThunderBoarder Dialog=kiwi.zh-TW
红莲雷王滑板卡组。
AI_LV3 SUPPORT_NEW_MASTER_RULE
!复制梁龙-闪刀姬 !复制梁龙-闪刀姬
Name=复制梁龙 Deck=SkyStriker Dialog=anothercopy.zh-CN Name=复制梁龙 Deck=SkyStriker Dialog=anothercopy.zh-CN
纯闪刀姬卡组。 纯闪刀姬卡组。
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
53143898 53143898
42790071 42790071
42790071 42790071
42790071
14558127 14558127
14558127 14558127
59438930 59438930
......
...@@ -194,7 +194,7 @@ namespace WindBot.Game.AI.Decks ...@@ -194,7 +194,7 @@ namespace WindBot.Game.AI.Decks
public bool has_altergeist_left() public bool has_altergeist_left()
{ {
return (Bot.GetRemainingCount(CardId.Marionetter, 3) > 0 return (Bot.GetRemainingCount(CardId.Marionetter, 3) > 0
|| Bot.GetRemainingCount(CardId.Multifaker, 3) > 0 || Bot.GetRemainingCount(CardId.Multifaker, 2) > 0
|| Bot.GetRemainingCount(CardId.Meluseek,3) > 0 || Bot.GetRemainingCount(CardId.Meluseek,3) > 0
|| Bot.GetRemainingCount(CardId.Silquitous,2) > 0 || Bot.GetRemainingCount(CardId.Silquitous,2) > 0
|| Bot.GetRemainingCount(CardId.Kunquery,1) > 0); || Bot.GetRemainingCount(CardId.Kunquery,1) > 0);
...@@ -1265,7 +1265,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1265,7 +1265,7 @@ namespace WindBot.Game.AI.Decks
AI.SelectCard(CardId.Marionetter); AI.SelectCard(CardId.Marionetter);
return true; return true;
} }
if (!Bot.HasInHandOrHasInMonstersZone(CardId.Multifaker) && Bot.GetRemainingCount(CardId.Multifaker, 3) > 0 && Multifaker_can_ss()) if (!Bot.HasInHandOrHasInMonstersZone(CardId.Multifaker) && Bot.GetRemainingCount(CardId.Multifaker, 2) > 0 && Multifaker_can_ss())
{ {
AI.SelectCard(CardId.Multifaker); AI.SelectCard(CardId.Multifaker);
return true; return true;
...@@ -1332,7 +1332,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1332,7 +1332,7 @@ namespace WindBot.Game.AI.Decks
{ {
if (Duel.Player == 1) if (Duel.Player == 1)
{ {
if (!Bot.HasInHandOrHasInMonstersZone(CardId.Multifaker) && Bot.GetRemainingCount(CardId.Multifaker, 3) > 0 && Multifaker_candeckss() && Multifaker_can_ss()) if (!Bot.HasInHandOrHasInMonstersZone(CardId.Multifaker) && Bot.GetRemainingCount(CardId.Multifaker, 2) > 0 && Multifaker_candeckss() && Multifaker_can_ss())
{ {
foreach(ClientCard set_card in Bot.GetSpells()) foreach(ClientCard set_card in Bot.GetSpells())
{ {
...@@ -1356,7 +1356,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1356,7 +1356,7 @@ namespace WindBot.Game.AI.Decks
AI.SelectCard(CardId.Marionetter); AI.SelectCard(CardId.Marionetter);
return true; return true;
} }
if (!Bot.HasInHandOrHasInMonstersZone(CardId.Multifaker) && Bot.GetRemainingCount(CardId.Multifaker, 3) > 0 && Multifaker_can_ss()) if (!Bot.HasInHandOrHasInMonstersZone(CardId.Multifaker) && Bot.GetRemainingCount(CardId.Multifaker, 2) > 0 && Multifaker_can_ss())
{ {
AI.SelectCard(CardId.Multifaker); AI.SelectCard(CardId.Multifaker);
return true; return true;
...@@ -2362,7 +2362,7 @@ namespace WindBot.Game.AI.Decks ...@@ -2362,7 +2362,7 @@ namespace WindBot.Game.AI.Decks
if (GetTotalATK(targets) >= 1500 && (summoned || (!Meluseek_selected && !Hexstia_selected))) return false; if (GetTotalATK(targets) >= 1500 && (summoned || (!Meluseek_selected && !Hexstia_selected))) return false;
} }
bool can_have_Multifaker = (Bot.HasInHand(CardId.Multifaker) bool can_have_Multifaker = (Bot.HasInHand(CardId.Multifaker)
|| (Bot.GetRemainingCount(CardId.Multifaker, 3) > 0 || (Bot.GetRemainingCount(CardId.Multifaker, 2) > 0
&& ( (Meluseek_selected && !Meluseek_searched) && ( (Meluseek_selected && !Meluseek_searched)
|| (Hexstia_selected && !Hexstia_searched) ))); || (Hexstia_selected && !Hexstia_searched) )));
if (can_have_Multifaker && Multifaker_can_ss()) altergeist_count++; if (can_have_Multifaker && Multifaker_can_ss()) altergeist_count++;
......
...@@ -78,6 +78,8 @@ ...@@ -78,6 +78,8 @@
SuperboltThunderDragon = 15291624, SuperboltThunderDragon = 15291624,
ThunderDragonLord = 41685633, ThunderDragonLord = 41685633,
CyberDragonInfinity = 10443957, CyberDragonInfinity = 10443957,
ImperialCustom = 9995766 ImperialCustom = 9995766,
InspectorBoarder = 15397015
} }
} }
...@@ -247,6 +247,21 @@ namespace WindBot.Game ...@@ -247,6 +247,21 @@ namespace WindBot.Game
return (Attribute & (int)attribute) != 0; return (Attribute & (int)attribute) != 0;
} }
public bool HasSetcode(int setcode)
{
if (Data == null) return false;
long setcodes = Data.Setcode;
int settype = setcode & 0xfff;
int setsubtype = setcode & 0xf000;
while (setcodes > 0)
{
long check_setcode = setcodes & 0xffff;
setcodes >>= 16;
if ((check_setcode & 0xfff) == settype && (check_setcode & 0xf000 & setsubtype) == setsubtype) return true;
}
return false;
}
public bool IsMonster() public bool IsMonster()
{ {
return HasType(CardType.Monster); return HasType(CardType.Monster);
......
...@@ -22,7 +22,7 @@ namespace WindBot ...@@ -22,7 +22,7 @@ namespace WindBot
Host = "127.0.0.1"; Host = "127.0.0.1";
Port = 7911; Port = 7911;
HostInfo = ""; HostInfo = "";
Version = 0x1345; Version = 0x1346;
Hand = 0; Hand = 0;
Debug = false; Debug = false;
Chat = true; Chat = true;
......
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