Commit ca7c981b authored by DailyShana's avatar DailyShana

fix

parent 95f85bcb
...@@ -615,18 +615,16 @@ long GetMonsterType(string cardtype) ...@@ -615,18 +615,16 @@ long GetMonsterType(string cardtype)
return type; return type;
} }
//卡片类型 //卡片类型
long GetCardType(string cardtype, string level, string type1, long GetCardType(string cardtype, string level, params string[] types)
string type2, string type3)
{ {
long type = 0; long type = 0;
//魔法陷阱 //魔法陷阱
type |= GetSpellTrapType(level); type |= GetSpellTrapType(level);
//怪兽 //怪兽
type |= GetMonsterType(cardtype); type |= GetMonsterType(cardtype);
//type2-4是识别怪兽效果类型 //types是识别怪兽效果类型
type |= GetTypeInt(type1); foreach(string typ in types)
type |= GetTypeInt(type2); type |= GetTypeInt(typ);
type |= GetTypeInt(type3);
return type; return type;
} }
......
################ use tab ################ use tab
##rule ##rule
0x0 Rule 0x0 Rule
0x1 OCG 0x1 OCG
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
0x200000 Divine-Beast 0x200000 Divine-Beast
0x400000 Creator God 0x400000 Creator God
0x800000 Wyrm 0x800000 Wyrm
0x1000000 Cybers 0x1000000 Cyverse
##type ##type
0x1 Monster 0x1 Monster
0x2 Spell 0x2 Spell
......
No preview for this file type
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