Commit 61628831 authored by mercury233's avatar mercury233

fix

parent 2d9a0cc9
...@@ -32,6 +32,14 @@ function c12644061.initial_effect(c) ...@@ -32,6 +32,14 @@ function c12644061.initial_effect(c)
e4:SetCost(c12644061.damcost) e4:SetCost(c12644061.damcost)
e4:SetOperation(c12644061.damop) e4:SetOperation(c12644061.damop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--12644061 chk
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(12644061)
e5:SetRange(LOCATION_FZONE)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e5:SetTargetRange(1,1)
c:RegisterEffect(e5)
end end
function c12644061.discon(e,tp,eg,ep,ev,re,r,rp) function c12644061.discon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
......
...@@ -25,6 +25,14 @@ function c4064256.initial_effect(c) ...@@ -25,6 +25,14 @@ function c4064256.initial_effect(c)
local e4=e3:Clone() local e4=e3:Clone()
e4:SetCode(EFFECT_CANNOT_MSET) e4:SetCode(EFFECT_CANNOT_MSET)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--4064256 chk
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(4064256)
e5:SetRange(LOCATION_FZONE)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e5:SetTargetRange(1,1)
c:RegisterEffect(e5)
end end
function c4064256.sumlimit(e,c,tp,sumtp) function c4064256.sumlimit(e,c,tp,sumtp)
return bit.band(sumtp,SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:GetRace()~=RACE_ZOMBIE return bit.band(sumtp,SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:GetRace()~=RACE_ZOMBIE
......
...@@ -20,9 +20,9 @@ function c5288597.cfilter(c,e,tp) ...@@ -20,9 +20,9 @@ function c5288597.cfilter(c,e,tp)
local lv=c:GetOriginalLevel() local lv=c:GetOriginalLevel()
local rc=nil local rc=nil
local att=nil local att=nil
if Duel.IsEnvironment(4064256) then rc=RACE_ZOMBIE if Duel.IsPlayerAffectedByEffect(tp,4064256) then rc=RACE_ZOMBIE
else rc=c:GetOriginalRace() end else rc=c:GetOriginalRace() end
if Duel.IsEnvironment(12644061) and c:IsSetCard(0x1034) then att=ATTRIBUTE_DARK if Duel.IsPlayerAffectedByEffect(tp,12644061) and c:IsSetCard(0x1034) then att=ATTRIBUTE_DARK
else att=c:GetOriginalAttribute() end else att=c:GetOriginalAttribute() end
return bit.band(c:GetOriginalType(),TYPE_MONSTER)~=0 and lv>0 and c:IsFaceup() and c:IsAbleToGraveAsCost() return bit.band(c:GetOriginalType(),TYPE_MONSTER)~=0 and lv>0 and c:IsFaceup() and c:IsAbleToGraveAsCost()
and Duel.IsExistingMatchingCard(c5288597.spfilter,tp,LOCATION_DECK,0,1,nil,lv+1,rc,att,e,tp) and Duel.IsExistingMatchingCard(c5288597.spfilter,tp,LOCATION_DECK,0,1,nil,lv+1,rc,att,e,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