Commit a21ee66f authored by POLYMER's avatar POLYMER

fix

parent 5ceb2856
...@@ -50,8 +50,10 @@ function c29098386.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,8 +50,10 @@ function c29098386.thop(e,tp,eg,ep,ev,re,r,rp)
end end
--cost --cost
function c29098386.chainfilter(re,tp,cid) function c29098386.chainfilter(re,tp,cid)
local rc=re:GetHandler() local c=re:GetHandler()
return (rc:IsSetCard(0x87af) and rc:IsAttribute(ATTRIBUTE_WATER)) or not re:IsActiveType(TYPE_MONSTER) or not rc:IsAttribute(ATTRIBUTE_WATER) local attr=Duel.GetChainInfo(cid,CHAININFO_TRIGGERING_ATTRIBUTE)
return (c:IsSetCard(0x87af) or (_G["c"..c:GetCode()] and _G["c"..c:GetCode()].named_with_Arknight))
or not re:IsActiveType(TYPE_MONSTER) or attr&ATTRIBUTE_WATER~=0
end end
function c29098386.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c29098386.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(29098386,tp,ACTIVITY_CHAIN)==0 end if chk==0 then return Duel.GetCustomActivityCount(29098386,tp,ACTIVITY_CHAIN)==0 end
...@@ -65,7 +67,8 @@ function c29098386.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,7 +67,8 @@ function c29098386.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c29098386.aclimit(e,re,tp) function c29098386.aclimit(e,re,tp)
return not re:GetHandler():IsSetCard(0x87af) and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsAttribute(ATTRIBUTE_WATER) local c=re:GetHandler()
return not (c:IsSetCard(0x87af) or (_G["c"..c:GetCode()] and _G["c"..c:GetCode()].named_with_Arknight)) and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsAttribute(ATTRIBUTE_WATER)
end end
--e1 --e1
function c29098386.descon(e,tp,eg,ep,ev,re,r,rp) function c29098386.descon(e,tp,eg,ep,ev,re,r,rp)
......
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