Commit 42c3c98c authored by TanakaKotoha's avatar TanakaKotoha

fix 3

parent 183adab3
No preview for this file type
...@@ -49,6 +49,13 @@ function cm.initial_effect(c) ...@@ -49,6 +49,13 @@ function cm.initial_effect(c)
e5:SetOperation(cm.addcount) e5:SetOperation(cm.addcount)
Duel.RegisterEffect(e5,0) Duel.RegisterEffect(e5,0)
end end
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e6:SetProperty(EFFECT_FLAG_DELAY)
e6:SetCode(EVENT_BATTLE_DESTROYING)
e6:SetCondition(aux.bdocon)
e6:SetOperation(cm.bdop)
c:RegisterEffect(e6)
end end
function cm.immcon(e) function cm.immcon(e)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -74,13 +81,6 @@ function cm.eaop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,13 +81,6 @@ function cm.eaop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(500) e1:SetValue(500)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) or c:GetAttackAnnouncedCount()==0 then return end
if Duel.GetAttacker()==c then
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if #sg>0 then
Duel.Destroy(sg,REASON_EFFECT)
end
end
end end
end end
function cm.resetcount(e,tp,eg,ep,ev,re,r,rp) function cm.resetcount(e,tp,eg,ep,ev,re,r,rp)
...@@ -100,3 +100,9 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,3 +100,9 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,ct,REASON_EFFECT) Duel.Damage(1-tp,ct,REASON_EFFECT)
end end
end end
function cm.bdop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if #sg>0 then
Duel.Destroy(sg,REASON_EFFECT)
end
end
\ No newline at end of file
...@@ -55,10 +55,8 @@ function c60151501.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,10 +55,8 @@ function c60151501.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.IsPlayerCanSpecialSummonMonster(tp,60151501,0x9b28,0x21,1500,1500,4,RACE_WARRIOR,ATTRIBUTE_FIRE) then if c:IsRelateToEffect(e) and Duel.IsPlayerCanSpecialSummonMonster(tp,60151501,0x9b28,0x21,1500,1500,4,RACE_WARRIOR,ATTRIBUTE_FIRE) then
c:AddMonsterAttribute(TYPE_EFFECT) c:AddMonsterAttribute(TYPE_EFFECT)
Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
c:AddMonsterAttributeComplete()
c:RegisterFlagEffect(60151501,RESET_EVENT+0x1fe0000,0,1) c:RegisterFlagEffect(60151501,RESET_EVENT+0x1fe0000,0,1)
Duel.SpecialSummonComplete()
end end
end end
function c60151501.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60151501.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -93,11 +93,12 @@ function c60152603.e1op(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,11 +93,12 @@ function c60152603.e1op(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
if e:GetHandler():GetColumnGroupCount()==0 then if e:GetHandler():GetColumnGroupCount()==0 then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_GRAVE,nil)
local g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_GRAVE,1,1,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(60152603,1)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(60152603,1)) then
Duel.HintSelection(g) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) local sg=g:Select(tp,1,1,nil)
Duel.HintSelection(sg)
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
end end
else else
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
......
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