Commit 57d3adc3 authored by wind2009's avatar wind2009

Fix ダークリボー

parent 58e1f9c3
...@@ -67,7 +67,8 @@ end ...@@ -67,7 +67,8 @@ end
function s.indop(e,tp,eg,ep,ev,re,r,rp) function s.indop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then
tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,2)) tc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,2))
tc:RegisterFlagEffect(id,RESET_EVENT+RESET_TOFIELD+RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
...@@ -90,7 +91,6 @@ function s.indop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,7 +91,6 @@ function s.indop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.effectfilter(e,ct) function s.effectfilter(e,ct)
local te,loc=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_LOCATION) local te,loc=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_LOCATION)
local label=e:GetLabel()
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
return tc and tc==te:GetHandler() and bit.band(loc,LOCATION_MZONE)~=0 return tc and tc==te:GetHandler() and bit.band(loc,LOCATION_MZONE)~=0
and tc:GetFlagEffect(id)~=0 and tc:GetFlagEffect(id)~=0
......
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