Commit ca7a6cf6 authored by VanillaSalt's avatar VanillaSalt

fix

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