Commit a3dee7fa authored by fallenstardust's avatar fallenstardust
parents a061b1eb 6916a8d8
Pipeline #28187 passed with stages
in 1 minute and 2 seconds
...@@ -79,6 +79,7 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,6 +79,7 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_MZONE,0,1,1,tc,e) local g=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_MZONE,0,1,1,tc,e)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g)
local og=tc:GetOverlayGroup() local og=tc:GetOverlayGroup()
if og:GetCount()>0 then if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE) Duel.SendtoGrave(og,REASON_RULE)
......
...@@ -43,7 +43,7 @@ function s.mfilter(c) ...@@ -43,7 +43,7 @@ function s.mfilter(c)
return c:IsFusionAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_SPELLCASTER) return c:IsFusionAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_SPELLCASTER)
end end
function s.damtg(e,c) function s.damtg(e,c)
return c:IsSetCard(0x2bd) and c:GetBattleTarget()~=nil and not c:IsCode(id) return c:IsSetCard(0x2bd) and not c:IsCode(id)
end end
function s.discon(e,tp,eg,ep,ev,re,r,rp) function s.discon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.IsChainDisablable(ev) return ep~=tp and Duel.IsChainDisablable(ev)
......
...@@ -26,7 +26,7 @@ function s.initial_effect(c) ...@@ -26,7 +26,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--def down --def down
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_UPDATE_ATTACK) e3:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Search --Search
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
......
...@@ -22,7 +22,7 @@ function s.initial_effect(c) ...@@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetCountLimit(1,id+o) e2:SetCountLimit(1,id+o)
e2:SetTarget(s.thtg) e2:SetTarget(s.thtg)
......
...@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.descon(e,tp,eg,ep,ev,re,r,rp) function s.descon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():IsSetCard(0x19e) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) return re:GetHandler():IsSetCard(0x2bd,0x19e) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) end if chkc then return chkc:IsLocation(LOCATION_ONFIELD) end
......
...@@ -61,7 +61,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.tdfilter(c) function s.tdfilter(c)
return c:IsFaceupEx() and c:IsType(TYPE_MONSTER) return c:IsFaceupEx() and c:IsType(TYPE_MONSTER)
and c:IsAbleToDeck() and c:IsSetCard(0x2bd) and c:IsAbleToDeck() and c:IsSetCard(0x2bd)
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
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