Commit 19e063e6 authored by nanahira's avatar nanahira Committed by GitHub

fix (#1132)

* fix c88086137's sequence check

* considering mr3..

* typo

* stupid vscode
parent 948faeb4
...@@ -13,9 +13,12 @@ end ...@@ -13,9 +13,12 @@ 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 loc,seq,p=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE,CHAININFO_TRIGGERING_CONTROLER) local loc,seq,p=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE,CHAININFO_TRIGGERING_CONTROLER)
if not bit.band(loc,LOCATION_ONFIELD) then return false end if loc&LOCATION_ONFIELD==0 then return false end
if loc==LOCATION_SZONE then
if seq>4 then return false end
seq=seq+8
end
if p==1-tp then seq=seq+16 end if p==1-tp then seq=seq+16 end
if loc==LOCATION_SZONE then seq=seq+8 end
return bit.extract(c:GetColumnZone(LOCATION_ONFIELD),seq)~=0 return bit.extract(c:GetColumnZone(LOCATION_ONFIELD),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
......
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