Commit 8c65eef4 authored by Fluorohydride's avatar Fluorohydride

fix

parent 802252a4
...@@ -1425,6 +1425,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -1425,6 +1425,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame->dField.sort_list.push_back(0); mainGame->dField.sort_list.push_back(0);
} }
if (mainGame->chkAutoChain->isChecked() && mainGame->dInfo.curMsg == MSG_SORT_CHAIN) { if (mainGame->chkAutoChain->isChecked() && mainGame->dInfo.curMsg == MSG_SORT_CHAIN) {
mainGame->dField.sort_list.clear();
SetResponseI(-1); SetResponseI(-1);
DuelClient::SendResponse(); DuelClient::SendResponse();
return true; return true;
......
...@@ -618,6 +618,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) { ...@@ -618,6 +618,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
respbuf[i] = sort_list[i] - 1; respbuf[i] = sort_list[i] - 1;
DuelClient::SetResponseB(respbuf, select_max); DuelClient::SetResponseB(respbuf, select_max);
mainGame->HideElement(mainGame->wCardSelect, true); mainGame->HideElement(mainGame->wCardSelect, true);
sort_list.clear();
} }
} }
break; break;
......
...@@ -351,9 +351,8 @@ int32 card::get_attack(uint8 swap) { ...@@ -351,9 +351,8 @@ int32 card::get_attack(uint8 swap) {
temp.attack = base; temp.attack = base;
} }
} }
}
if (eset[i]->type & EFFECT_TYPE_SINGLE)
up += eset[i]->get_value(this); up += eset[i]->get_value(this);
}
else else
upc += eset[i]->get_value(this); upc += eset[i]->get_value(this);
break; break;
......
...@@ -26,12 +26,9 @@ function c55713623.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,12 +26,9 @@ function c55713623.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK) e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e1:SetValue(c55713623.atkval) e1:SetValue(tc:GetTextAttack()/2)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
function c55713623.atkval(e,c)
return c:GetBaseAttack()/2
end
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
!system 1071 反转 !system 1071 反转
!system 1072 卡通 !system 1072 卡通
!system 1073 超量 !system 1073 超量
!system 1074 !system 1074
!system 1080 (N/A) !system 1080 (N/A)
#GUI #GUI
!system 1100 魔陷破坏 !system 1100 魔陷破坏
......
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