Commit 615f5126 authored by POLYMER's avatar POLYMER

fix

parent d6088656
...@@ -2690,10 +2690,11 @@ function cm.btreset(code) ...@@ -2690,10 +2690,11 @@ function cm.btreset(code)
class[0]=nil class[0]=nil
end end
end end
function cm.RinnaZone(tp,cg) function cm.RinnaZone(tp,cg,szone)
local fdzone=0 local fdzone=0
for cc in aux.Next(cg) do for cc in aux.Next(cg) do
local cs=cc:GetSequence() local cs=cc:GetSequence()
if szone then cs=cs+8 end
local cz=1<<cs local cz=1<<cs
fdzone=fdzone|cz fdzone=fdzone|cz
local bcz=1<<(cs+16) local bcz=1<<(cs+16)
......
...@@ -2007,6 +2007,7 @@ function cm.SpellorTrapSPable(c) ...@@ -2007,6 +2007,7 @@ function cm.SpellorTrapSPable(c)
end end
end end
function cm.HelltakerActivate(c,code) function cm.HelltakerActivate(c,code)
cm.AozoraDisZoneGet(c)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE) e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
...@@ -2259,7 +2260,7 @@ function cm.HTAfcostop(_op,zone) ...@@ -2259,7 +2260,7 @@ function cm.HTAfcostop(_op,zone)
end end
function cm.HTAmvfilter(c,e,tp,zone) function cm.HTAmvfilter(c,e,tp,zone)
local seq=c:GetSequence() local seq=c:GetSequence()
return c:IsHasEffect(53765000) and ((seq>0 and Duel.CheckLocation(tp,LOCATION_SZONE,seq-1)) or c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,1<<seq)) and (1<<seq)&zone~=0 return c:IsHasEffect(53765000) and ((seq>0 and Duel.CheckLocation(tp,LOCATION_SZONE,seq-1)) or c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,1<<seq)) and (1<<seq)&zone~=0 and cm.RinnaZone(tp,Group.FromCards(c),true)>0
end end
function cm.HTAmvcostop(e,tp,eg,ep,ev,re,r,rp) function cm.HTAmvcostop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject() local te=e:GetLabelObject()
......
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