Commit 1542d1d9 authored by nekrozar's avatar nekrozar

fix for Oracle of Zefra

parent e7d3b88b
...@@ -51,6 +51,7 @@ function c37440988.hspcon(e,c) ...@@ -51,6 +51,7 @@ function c37440988.hspcon(e,c)
end end
function c37440988.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c37440988.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(tp,c37440988.hspfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(tp,c37440988.hspfilter,1,1,nil,tp,c)
c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c37440988.cfilter(c) function c37440988.cfilter(c)
......
...@@ -40,8 +40,8 @@ function c41685633.initial_effect(c) ...@@ -40,8 +40,8 @@ function c41685633.initial_effect(c)
e4:SetTarget(c41685633.desreptg) e4:SetTarget(c41685633.desreptg)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c41685633.sprfilter1(c) function c41685633.sprfilter1(c,sc)
return c:IsRace(RACE_THUNDER) and c:IsAbleToRemoveAsCost() return c:IsRace(RACE_THUNDER) and c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)
end end
function c41685633.sprfilter2(c,tp,sc) function c41685633.sprfilter2(c,tp,sc)
return c:IsRace(RACE_THUNDER) and c:IsFusionType(TYPE_FUSION) return c:IsRace(RACE_THUNDER) and c:IsFusionType(TYPE_FUSION)
...@@ -50,15 +50,16 @@ end ...@@ -50,15 +50,16 @@ end
function c41685633.sprcon(e,c) function c41685633.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c41685633.sprfilter1,tp,LOCATION_HAND,0,1,nil) return Duel.IsExistingMatchingCard(c41685633.sprfilter1,tp,LOCATION_HAND,0,1,nil,c)
and Duel.IsExistingMatchingCard(c41685633.sprfilter2,tp,LOCATION_MZONE,0,1,nil,tp,c) and Duel.IsExistingMatchingCard(c41685633.sprfilter2,tp,LOCATION_MZONE,0,1,nil,tp,c)
end end
function c41685633.sprop(e,tp,eg,ep,ev,re,r,rp,c) function c41685633.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=Duel.SelectMatchingCard(tp,c41685633.sprfilter1,tp,LOCATION_HAND,0,1,1,nil) local g1=Duel.SelectMatchingCard(tp,c41685633.sprfilter1,tp,LOCATION_HAND,0,1,1,nil,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,c41685633.sprfilter2,tp,LOCATION_MZONE,0,1,1,nil,tp,c) local g2=Duel.SelectMatchingCard(tp,c41685633.sprfilter2,tp,LOCATION_MZONE,0,1,1,nil,tp,c)
g1:Merge(g2) g1:Merge(g2)
c:SetMaterial(g)
Duel.Remove(g1,POS_FACEUP,REASON_COST) Duel.Remove(g1,POS_FACEUP,REASON_COST)
end end
function c41685633.descon(e,tp,eg,ep,ev,re,r,rp) function c41685633.descon(e,tp,eg,ep,ev,re,r,rp)
......
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