Commit 0060228e authored by DailyShana's avatar DailyShana

fix

parent 6cd6efb0
...@@ -12,9 +12,10 @@ function c88086137.initial_effect(c) ...@@ -12,9 +12,10 @@ function c88086137.initial_effect(c)
end end
function c88086137.condition(e,tp,eg,ep,ev,re,r,rp) function c88086137.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local seq,p=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_SEQUENCE,CHAININFO_TRIGGERING_CONTROLER) local loc,seq,p=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE,CHAININFO_TRIGGERING_CONTROLER)
if p==1-tp then seq=seq+16 end if p==1-tp then seq=seq+16 end
return (bit.extract(c:GetColumnZone(LOCATION_MZONE),seq)~=0 or bit.extract(c:GetColumnZone(LOCATION_SZONE),seq)~=0) return (bit.band(loc,LOCATION_MZONE)~=0 and bit.extract(c:GetColumnZone(LOCATION_MZONE),seq)~=0
or bit.band(loc,LOCATION_SZONE)~=0 and bit.extract(c:GetColumnZone(LOCATION_SZONE),seq)~=0)
and (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(ev) and (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(ev)
end end
function c88086137.target(e,tp,eg,ep,ev,re,r,rp,chk) function c88086137.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
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