Commit 127b3ddc authored by VanillaSalt's avatar VanillaSalt

Merge pull request #797 from sidschingis/patch-2

fix
parents b88a5d13 1c6a0ef4
...@@ -67,7 +67,8 @@ function c19748583.eqlimit(e,c) ...@@ -67,7 +67,8 @@ function c19748583.eqlimit(e,c)
end end
function c19748583.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c19748583.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return bit.band(r,REASON_EFFECT)~=0 and c:GetEquipTarget():IsAttribute(ATTRIBUTE_LIGHT) end if chk==0 then return bit.band(r,REASON_EFFECT)~=0 and c:GetEquipTarget():IsAttribute(ATTRIBUTE_LIGHT)
and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(e:GetOwnerPlayer(),aux.Stringid(19748583,1)) return Duel.SelectYesNo(e:GetOwnerPlayer(),aux.Stringid(19748583,1))
end end
function c19748583.repop(e,tp,eg,ep,ev,re,r,rp) function c19748583.repop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -63,7 +63,7 @@ function c55742055.confilter(c) ...@@ -63,7 +63,7 @@ function c55742055.confilter(c)
end end
function c55742055.effcon(e,tp,eg,ep,ev,re,r,rp) function c55742055.effcon(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp then return false end if Duel.GetTurnPlayer()~=tp then return false end
local g=Duel.GetMatchingGroup(c55742055.confilter,tp,LOCATION_GRAVE+LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(c55742055.confilter,tp,LOCATION_GRAVE+LOCATION_ONFIELD,0,nil)
return g:GetClassCount(Card.GetCode)>=e:GetLabel() return g:GetClassCount(Card.GetCode)>=e:GetLabel()
end end
function c55742055.filter1(c) function c55742055.filter1(c)
...@@ -124,7 +124,7 @@ function c55742055.operation3(e,tp,eg,ep,ev,re,r,rp) ...@@ -124,7 +124,7 @@ function c55742055.operation3(e,tp,eg,ep,ev,re,r,rp)
end end
function c55742055.condition4(e,tp,eg,ep,ev,re,r,rp) function c55742055.condition4(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp then return false end if Duel.GetTurnPlayer()~=tp then return false end
local g=Duel.GetMatchingGroup(c55742055.confilter,tp,LOCATION_GRAVE+LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(c55742055.confilter,tp,LOCATION_GRAVE+LOCATION_ONFIELD,0,nil)
return g:GetClassCount(Card.GetCode)==12 return g:GetClassCount(Card.GetCode)==12
end end
function c55742055.target4(e,tp,eg,ep,ev,re,r,rp,chk) function c55742055.target4(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -51,6 +51,17 @@ function c93085839.effcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,6 +51,17 @@ function c93085839.effcon(e,tp,eg,ep,ev,re,r,rp)
return (r==REASON_XYZ or r==REASON_SYNCHRO) and e:GetHandler():GetReasonCard():IsSetCard(0x107a) return (r==REASON_XYZ or r==REASON_SYNCHRO) and e:GetHandler():GetReasonCard():IsSetCard(0x107a)
end end
function c93085839.effop1(e,tp,eg,ep,ev,re,r,rp) function c93085839.effop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=c:GetReasonCard()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetOperation(c93085839.sumop)
rc:RegisterEffect(e1)
end
function c93085839.sumop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetChainLimitTillChainEnd(c93085839.chainlm) Duel.SetChainLimitTillChainEnd(c93085839.chainlm)
end end
function c93085839.chainlm(e,rp,tp) function c93085839.chainlm(e,rp,tp)
......
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