Commit ca7a6cf6 authored by VanillaSalt's avatar VanillaSalt

fix

parent 16aa6a7d
......@@ -1145,7 +1145,7 @@ int32 scriptlib::card_is_synchro_summonable(lua_State *L) {
}
uint32 p = pcard->pduel->game_field->core.reason_player;
pcard->pduel->game_field->core.limit_tuner = tuner;
pcard->pduel->game_field->core.limit_xyz = mg;
pcard->pduel->game_field->core.limit_syn = mg;
lua_pushboolean(L, pcard->is_special_summonable(p));
return 1;
}
......
......@@ -3902,7 +3902,7 @@ int32 field::select_xyz_material(int16 step, uint8 playerid, card* scard, int32
} else
core.units.begin()->step = 1;
return FALSE;
}
}
case 1: {
group* pgroup = pduel->new_group();
for(int32 i = 0; i < returns.bvalue[0]; ++i) {
......
......@@ -47,7 +47,7 @@ function c2095764.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c2095764.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK)
end
function c2095764.sccon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
......
......@@ -6,12 +6,18 @@ function c3171055.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c3171055.condition)
e1:SetTarget(c3171055.target)
e1:SetOperation(c3171055.activate)
c:RegisterEffect(e1)
end
function c3171055.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c3171055.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return end
local g=Duel.GetMatchingGroup(Card.IsCode,ep,LOCATION_DECK,0,nil,re:GetHandler():GetCode())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c3171055.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsCode,ep,LOCATION_DECK,0,nil,re:GetHandler():GetCode())
Duel.Destroy(g,REASON_EFFECT)
......
......@@ -47,7 +47,7 @@ function c35089369.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c35089369.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK)
end
function c35089369.sccon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
......
......@@ -43,7 +43,7 @@ function c61488417.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c61488417.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
function c61488417.cfilter(c,tp)
return c:IsSetCard(0x9e) and c:IsReason(REASON_DESTROY)
......
......@@ -22,7 +22,7 @@ function c79844764.checkop(e,tp,eg,ep,ev,re,r,rp)
local p1=false
local p2=false
while tc do
if not tc:IsPreviousLocation(LOCATION_EXTRA) then
if tc:IsPreviousLocation(LOCATION_EXTRA) then
if tc:GetSummonPlayer()==0 then p1=true else p2=true end
end
tc=eg:GetNext()
......@@ -42,7 +42,7 @@ function c79844764.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp)
end
function c79844764.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsLocation(LOCATION_EXTRA)
return c:IsLocation(LOCATION_EXTRA)
end
function c79844764.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......
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