Commit 9ea3c77f authored by VanillaSalt's avatar VanillaSalt

fix

parent 228ece20
......@@ -913,6 +913,23 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
ShowSelectCard(true);
break;
}
if(mainGame->dInfo.player_type == 7) {
if(mainGame->wCardSelect->isVisible())
break;
selectable_cards.clear();
switch(hovered_location) {
case LOCATION_GRAVE: {
for(int32 i = (int32)grave[hovered_controler].size() - 1; i >= 0 ; --i)
selectable_cards.push_back(grave[hovered_controler][i]);
myswprintf(formatBuffer, L"%ls(%d)", dataManager.GetSysString(1004), grave[hovered_controler].size());
mainGame->wCardSelect->setText(formatBuffer);
break;
}
}
if(selectable_cards.size())
ShowSelectCard(true);
break;
}
if(hovered_location & 0xe)
clicked_card = GetCard(hovered_controler, hovered_location, hovered_sequence);
else clicked_card = 0;
......
......@@ -4351,8 +4351,12 @@ int32 field::sort_chain(uint16 step, uint8 tp) {
int32 field::solve_continuous(uint16 step, effect * peffect, uint8 triggering_player) {
switch(step) {
case 0: {
chain newchain;
core.solving_event.splice(core.solving_event.begin(), core.sub_solving_event);
if(!peffect->is_activateable(triggering_player, core.solving_event.front())) {
core.solving_event.pop_front();
return TRUE;
}
chain newchain;
newchain.chain_id = 0;
newchain.chain_count = 0;
newchain.triggering_effect = peffect;
......
--星輝士 トライヴェール
function c42589641.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsSetCard,0x9c),4),3)
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,c42589641.xyzfilter,4),3)
c:EnableReviveLimit()
--summon limit
local e1=Effect.CreateEffect(c)
......@@ -72,6 +72,9 @@ function c42589641.checkop(e,tp,eg,ep,ev,re,r,rp)
if p1 then Duel.RegisterFlagEffect(0,42589641,RESET_PHASE+PHASE_END,0,1) end
if p2 then Duel.RegisterFlagEffect(1,42589641,RESET_PHASE+PHASE_END,0,1) end
end
function c42589641.xyzfilter(c)
return Duel.GetFlagEffect(c:GetControler(),42589641)==0 and c:IsSetCard(0x9c)
end
function c42589641.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
end
......@@ -89,7 +92,7 @@ function c42589641.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x9c)
end
function c42589641.splimit(e,se,sp,st,spos,tgp)
return bit.band(st,SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ and Duel.GetFlagEffect(tgp,42589641)~=0
return bit.band(st,SUMMON_TYPE_XYZ)~=SUMMON_TYPE_XYZ or Duel.GetFlagEffect(tgp,42589641)==0
end
function c42589641.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
......
......@@ -28,7 +28,7 @@ function c55713623.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e1:SetValue(tc:GetTextAttack()/2)
e1:SetValue(tc:GetBaseAttack()/2)
tc:RegisterEffect(e1)
end
end
......@@ -20,6 +20,7 @@ function c97997309.initial_effect(c)
e2:SetType(EFFECT_TYPE_ACTIVATE)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,0x1c0+TIMING_BATTLE_PHASE)
e2:SetCountLimit(1,97997309+EFFECT_COUNT_CODE_OATH)
e2:SetCondition(c97997309.condition)
e2:SetCost(c97997309.cost)
e2:SetTarget(c97997309.target2)
......@@ -32,6 +33,7 @@ function c97997309.initial_effect(c)
e3:SetType(EFFECT_TYPE_ACTIVATE)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetHintTiming(0,0x1e0)
e3:SetCountLimit(1,97997309+EFFECT_COUNT_CODE_OATH)
e3:SetCondition(c97997309.condition)
e3:SetCost(c97997309.cost)
e3:SetTarget(c97997309.target3)
......
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