Commit 94d22641 authored by fallenstardust's avatar fallenstardust

额外卡组启动效果提示

parent 4c987b4c
...@@ -1263,10 +1263,14 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -1263,10 +1263,14 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame->dField.conti_act = true; mainGame->dField.conti_act = true;
} else { } else {
pcard->cmdFlag |= COMMAND_ACTIVATE; pcard->cmdFlag |= COMMAND_ACTIVATE;
if (pcard->location == LOCATION_GRAVE) if(pcard->controler == 0) {
mainGame->dField.grave_act = true; if(pcard->location == LOCATION_GRAVE)
else if (pcard->location == LOCATION_REMOVED) mainGame->dField.grave_act = true;
mainGame->dField.remove_act = true; else if(pcard->location == LOCATION_REMOVED)
mainGame->dField.remove_act = true;
else if(pcard->location == LOCATION_EXTRA)
mainGame->dField.extra_act = true;
}
} }
} }
mainGame->dField.attackable_cards.clear(); mainGame->dField.attackable_cards.clear();
...@@ -1393,10 +1397,14 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -1393,10 +1397,14 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame->dField.conti_act = true; mainGame->dField.conti_act = true;
} else { } else {
pcard->cmdFlag |= COMMAND_ACTIVATE; pcard->cmdFlag |= COMMAND_ACTIVATE;
if (pcard->location == LOCATION_GRAVE) if(pcard->controler == 0) {
mainGame->dField.grave_act = true; if(pcard->location == LOCATION_GRAVE)
else if (pcard->location == LOCATION_REMOVED) mainGame->dField.grave_act = true;
mainGame->dField.remove_act = true; else if(pcard->location == LOCATION_REMOVED)
mainGame->dField.remove_act = true;
else if(pcard->location == LOCATION_EXTRA)
mainGame->dField.extra_act = true;
}
} }
} }
if(BufferIO::ReadInt8(pbuf)) { if(BufferIO::ReadInt8(pbuf)) {
......
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