Commit 4594feb0 authored by mercury233's avatar mercury233

fix usage of EVENT_DETACH_MATERIAL

parent 9fdb4f41
......@@ -22,7 +22,7 @@ function c37241623.initial_effect(c)
end
function c37241623.checkop(e,tp,eg,ep,ev,re,r,rp)
local cid=Duel.GetCurrentChain()
if cid>0 then
if cid>0 and (r&REASON_COST)>0 then
c37241623[0]=Duel.GetChainInfo(cid,CHAININFO_CHAIN_ID)
end
end
......
......@@ -48,7 +48,7 @@ function c44190146.initial_effect(c)
end
function c44190146.checkop(e,tp,eg,ep,ev,re,r,rp)
local cid=Duel.GetCurrentChain()
if cid>0 then
if cid>0 and (r&REASON_COST)>0 then
local te=Duel.GetChainInfo(cid,CHAININFO_TRIGGERING_EFFECT)
local rc=te:GetHandler()
if rc:IsRelateToEffect(te) and c44190146[1][rc]~=nil then
......
......@@ -50,7 +50,7 @@ function c71095768.initial_effect(c)
end
function c71095768.checkop(e,tp,eg,ep,ev,re,r,rp)
local cid=Duel.GetCurrentChain()
if cid>0 then
if cid>0 and (r&REASON_COST)>0 then
c71095768[0]=Duel.GetChainInfo(cid,CHAININFO_CHAIN_ID)
c71095768[1]=Duel.GetChainInfo(cid,CHAININFO_TRIGGERING_LOCATION)
local seq=Duel.GetChainInfo(cid,CHAININFO_TRIGGERING_SEQUENCE)
......
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