Commit 6fda3e94 authored by Nemo Ma's avatar Nemo Ma

fix

parent f72ee549
...@@ -31,7 +31,7 @@ function cm.initial_effect(c) ...@@ -31,7 +31,7 @@ function cm.initial_effect(c)
e3:SetTargetRange(0xff,0xff) e3:SetTargetRange(0xff,0xff)
e3:SetTarget(cm.chtg) e3:SetTarget(cm.chtg)
e3:SetValue(33365932) e3:SetValue(33365932)
e3:SetRange(LOCATION_MZONE+LOCATION_GRAVE) e3:SetRange(LOCATION_MZONE)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--destroy --destroy
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -85,7 +85,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -85,7 +85,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoDeck(g,nil,2,REASON_COST) Duel.SendtoDeck(g,nil,2,REASON_COST)
end end
function cm.chtg(e,c) function cm.chtg(e,c)
if c then return c:IsSetCard(0x32) and c:IsType(TYPE_MONSTER) end if c then return c:IsRace(RACE_PYRO) and c:IsType(TYPE_MONSTER) end
end end
function cm.descon(e,tp,eg,ep,ev,re,r,rp) function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return (re:GetCode()==EVENT_SUMMON_SUCCESS or re:GetCode()==EVENT_SPSUMMON_SUCCESS) or (re:IsHasType(EFFECT_TYPE_ACTIVATE)) return (re:GetCode()==EVENT_SUMMON_SUCCESS or re:GetCode()==EVENT_SPSUMMON_SUCCESS) or (re:IsHasType(EFFECT_TYPE_ACTIVATE))
......
...@@ -63,6 +63,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,6 +63,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function cm.desop(e,tp,eg,ep,ev,re,r,rp) function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()==tp then return end
Duel.Destroy(e:GetHandler(),REASON_RULE) Duel.Destroy(e:GetHandler(),REASON_RULE)
end end
function cm.splimit(e,c,tp,sumtp,sumpos) function cm.splimit(e,c,tp,sumtp,sumpos)
......
...@@ -16,7 +16,7 @@ function cm.initial_effect(c) ...@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_IMMUNE_EFFECT) e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetRange(LOCATION_MZONE+LOCATION_SZONE) e2:SetRange(LOCATION_MZONE+LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetCondition(cm.immcon) e2:SetCondition(cm.immcon)
e2:SetTarget(cm.immtarget) e2:SetTarget(cm.immtarget)
e2:SetValue(cm.immfilter) e2:SetValue(cm.immfilter)
......
...@@ -16,7 +16,7 @@ function cm.initial_effect(c) ...@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_IMMUNE_EFFECT) e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetRange(LOCATION_MZONE+LOCATION_SZONE) e2:SetRange(LOCATION_MZONE+LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetCondition(cm.immcon) e2:SetCondition(cm.immcon)
e2:SetTarget(cm.immtarget) e2:SetTarget(cm.immtarget)
e2:SetValue(cm.immfilter) e2:SetValue(cm.immfilter)
......
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