Commit 9e10a32e authored by POLYMER's avatar POLYMER

fix

parent bb998c4c
......@@ -149,7 +149,7 @@ function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
if attr&ATTRIBUTE_WIND>0 then
local token=Duel.CreateToken(tp,m+3)
Duel.MoveToField(token,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local tc=Duel.SelectMatchingCard(tp,cm.cfilter3,tp,0,LOCATION_MZONE,1,nil):GetFirst()
local tc=Duel.SelectMatchingCard(tp,cm.cfilter3,tp,0,LOCATION_MZONE,1,1,nil):GetFirst()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
......
......@@ -26,7 +26,7 @@ function cm.bsfil1(c)
return c:IsCode(60010263) and c:IsFaceup()
end
function cm.bsfil2(c)
return c:IsCode(60010264) and c:IsFaceup()
return c:IsCode(60010265) and c:IsFaceup()
end
function cm.afil(c)
return c:IsCode(60010261) and c:IsFaceup()
......
......@@ -117,7 +117,7 @@ function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
if not ec then return end
local attr=ec:GetAttribute()
if attr&ATTRIBUTE_FIRE>0 and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) then
local token=Duel.CreateToken(tp,m+1)
local token=Duel.CreateToken(tp,60010261+1)
Duel.MoveToField(token,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local ag=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
for tc in aux.Next(ag) do
......@@ -130,14 +130,14 @@ function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
if attr&ATTRIBUTE_WATER>0 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>7 then
local token=Duel.CreateToken(tp,m+2)
local token=Duel.CreateToken(tp,60010261+2)
Duel.MoveToField(token,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.SortDecktop(tp,tp,8)
end
if attr&ATTRIBUTE_WIND>0 and Duel.IsExistingMatchingCard(cm.cfilter3,tp,0,LOCATION_MZONE,1,nil) then
local token=Duel.CreateToken(tp,m+3)
local token=Duel.CreateToken(tp,60010261+3)
Duel.MoveToField(token,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local tc=Duel.SelectMatchingCard(tp,cm.cfilter3,tp,0,LOCATION_MZONE,1,nil):GetFirst()
local tc=Duel.SelectMatchingCard(tp,cm.cfilter3,tp,0,LOCATION_MZONE,1,1,nil):GetFirst()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
......@@ -147,7 +147,7 @@ function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsAttack(0) then Duel.Destroy(tc,REASON_EFFECT) end
end
if attr&ATTRIBUTE_EARTH>0 then
local token=Duel.CreateToken(tp,m+4)
local token=Duel.CreateToken(tp,60010261+4)
Duel.MoveToField(token,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Recover(tp,3200,REASON_EFFECT)
end
......
......@@ -58,27 +58,27 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local t=0
local mg=Duel.GetOperatedGroup()
if Duel.IsExistingMatchingCard(cm.bsfil1,tp,LOCATION_SZONE,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
if g:GetCount()>0 then
local g=Duel.GetMatchingGroup(cm.bsfil1,tp,LOCATION_SZONE,0,nil)
if g:GetCount()>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then
local tg=g:GetMinGroup(Card.GetAttack)
if tg:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=tg:Select(tp,1,1,nil)
Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT)
else Duel.Destroy(tg,REASON_EFFECT) end
Duel.Destroy(sg,REASON_RULE)
else Duel.Destroy(tg,REASON_RULE) end
end
end
if Duel.IsExistingMatchingCard(cm.bsfil2,tp,LOCATION_SZONE,0,1,nil) and Duel.IsExistingMatchingCard(cm.filter2,tp,0,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
if g:GetCount()>0 then
local g=Duel.GetMatchingGroup(cm.bsfil2,tp,LOCATION_SZONE,0,nil)
if g:GetCount()>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then
local tg=g:GetMinGroup(Card.GetDefense)
if tg:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=tg:Select(tp,1,1,nil)
Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT)
else Duel.Destroy(tg,REASON_EFFECT) end
Duel.Destroy(sg,REASON_RULE)
else Duel.Destroy(tg,REASON_RULE) end
end
end
if t~=0 then Duel.Draw(tp,1,REASON_EFFECT) 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