Commit 01e950db authored by DailyShana's avatar DailyShana

fix

parent c43799b8
...@@ -52,7 +52,7 @@ end ...@@ -52,7 +52,7 @@ end
function c60399954.atkop(e,tp,eg,ep,ev,re,r,rp) function c60399954.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local atk=0 local atk=0
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,c) local g=Duel.GetMatchingGroup(Card.IsPosition,tp,LOCATION_MZONE,0,c,POS_FACEUP_ATTACK)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
atk=atk+tc:GetAttack() atk=atk+tc:GetAttack()
......
...@@ -13,9 +13,10 @@ end ...@@ -13,9 +13,10 @@ 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 p==1-tp then seq=seq+16 end if p==1-tp then seq=seq+16 end
return (bit.band(loc,LOCATION_MZONE)~=0 and bit.extract(c:GetColumnZone(LOCATION_MZONE),seq)~=0 if loc==LOCATION_SZONE then seq=seq+8 end
or bit.band(loc,LOCATION_SZONE)~=0 and bit.extract(c:GetColumnZone(LOCATION_SZONE),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
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