Commit 941fe36c authored by nanahira's avatar nanahira

finish script

parent d496395b
......@@ -20,6 +20,7 @@ function cm.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_GRAVE)
e3:SetCost(aux.bfgcost)
e3:SetTarget(cm.sptg)
e3:SetOperation(cm.spop)
c:RegisterEffect(e3)
......@@ -63,7 +64,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(cm.filter1,tp,LOCATION_GRAVE,0,1,nil)
and Duel.IsExistingTarget(cm.filter2,tp,LOCATION_GRAVE,0,1,nil)
and Duel.GetMZontCount()>0
and Duel.GetMZoneCount(tp)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,37564015,0,0x21,3000,2500,10,RACE_PLANT,ATTRIBUTE_DARK)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK,0,1,nil,37564015) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......@@ -79,7 +80,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if #sg~=2 or Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)~=2 then return end
if Duel.GetMZontCount()>0
if Duel.GetMZoneCount(tp)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,37564015,0,0x21,3000,2500,10,RACE_PLANT,ATTRIBUTE_DARK)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK,0,1,nil,37564015) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
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