Commit e424fb6b authored by Nemo Ma's avatar Nemo Ma

fix

parent 23c438e0
...@@ -27,7 +27,7 @@ function cm.initial_effect(c) ...@@ -27,7 +27,7 @@ function cm.initial_effect(c)
e3:SetDescription(aux.Stringid(m,2)) e3:SetDescription(aux.Stringid(m,2))
e3:SetCategory(CATEGORY_DESTROY) e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_RELEASE) e3:SetCode(EVENT_RELEASE)
e3:SetCountLimit(1,m+1) e3:SetCountLimit(1,m+1)
e3:SetTarget(cm.destg) e3:SetTarget(cm.destg)
......
...@@ -17,7 +17,7 @@ function cm.initial_effect(c) ...@@ -17,7 +17,7 @@ function cm.initial_effect(c)
e2:SetDescription(aux.Stringid(m,1)) e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_RELEASE) e2:SetCode(EVENT_RELEASE)
e2:SetCountLimit(1,m+1) e2:SetCountLimit(1,m+1)
e2:SetTarget(cm.thtg) e2:SetTarget(cm.thtg)
......
...@@ -105,7 +105,7 @@ function c60002008.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,7 +105,7 @@ function c60002008.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
function c60002008.splimit(e,c) function c60002008.splimit(e,c)
return not c:IsAttribute(ATTRIBUTE_EARTH) return not c:IsRace(RACE_PLANT)
end end
......
...@@ -34,7 +34,7 @@ function c98920050.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,7 +34,7 @@ function c98920050.condition(e,tp,eg,ep,ev,re,r,rp)
and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
end end
function c98920050.filter(c) function c98920050.filter(c)
return c:IsFaceup() and c:IsSetCard(0x104) and not c:IsCode(98920050) return c:IsFaceup() and c:IsSetCard(0x104) and not c:IsCode(98920050) and c:IsCanTurnSet()
end end
function c98920050.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c98920050.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
...@@ -17,14 +17,14 @@ function c98920066.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -17,14 +17,14 @@ function c98920066.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c98920066.filter,tp,LOCATION_MZONE,0,1,nil) if chk==0 then return Duel.IsExistingTarget(c98920066.filter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil)
and Duel.IsPlayerCanDraw(tp,1) end and Duel.IsExistingMatchingCard(c98920066.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g1=Duel.SelectTarget(tp,c98920066.filter,tp,LOCATION_MZONE,0,1,1,nil) local g1=Duel.SelectTarget(tp,c98920066.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g2=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil) local g2=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil)
g1:Merge(g2) g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g1,2,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g1,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c98920066.activate(e,tp,eg,ep,ev,re,r,rp) function c98920066.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
......
...@@ -59,16 +59,17 @@ end ...@@ -59,16 +59,17 @@ end
function c98920102.atlimit(e,c) function c98920102.atlimit(e,c)
return not e:GetHandler():GetLinkedGroup():IsContains(c) return not e:GetHandler():GetLinkedGroup():IsContains(c)
end end
function c98920102.filter(c,e,tp) function c98920102.filter(c,e,tp,zonr)
return c:IsSetCard(0x18) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x18) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,zone)
end end
function c98920102.spcon(e,tp,eg,ep,ev,re,r,rp) function c98920102.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsType(TYPE_LINK) and c:GetLinkedGroupCount()==0 and Duel.GetTurnPlayer()==tp return c:IsType(TYPE_LINK) and c:GetLinkedGroupCount()==0 and Duel.GetTurnPlayer()==tp
end end
function c98920102.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c98920102.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then
and Duel.IsExistingMatchingCard(c98920102.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end local zone=e:GetHandler():GetLinkedZone(tp)
return zone~=0 and Duel.IsExistingMatchingCard(c98920102.filter,tp,LOCATION_DECK,0,1,nil,e,tp,zone) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c98920102.spop(e,tp,eg,ep,ev,re,r,rp) function c98920102.spop(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