Commit 5100d992 authored by wind2009's avatar wind2009

Fix Aiza the Dragoness of Deranged Devotion

parent a4a43c3d
...@@ -5,8 +5,8 @@ function s.initial_effect(c) ...@@ -5,8 +5,8 @@ function s.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_COUNTER) e1:SetCategory(CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,id) e1:SetCountLimit(1,id)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCondition(s.ctcon) e1:SetCondition(s.ctcon)
...@@ -30,32 +30,35 @@ function s.ctcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,32 +30,35 @@ function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsCanAddCounter(0x106b,1) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsCanAddCounter(0x106b,1) end
if chk==0 then return Duel.IsExistingTarget(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,nil,0x106b,1) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,nil,0x106b,1) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,1,nil,0x106b,1)
end end
function s.ctop(e,tp,eg,ep,ev,re,r,rp) function s.ctop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
if tc:IsRelateToEffect(e) and tc:AddCounter(0x106b,1) then local g=Duel.SelectMatchingCard(tp,Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,1,nil,0x106b,1)
local e1=Effect.CreateEffect(e:GetHandler()) if g:GetCount()>0 then
e1:SetType(EFFECT_TYPE_SINGLE) Duel.HintSelection(g)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) local tc=g:GetFirst()
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL) if tc:AddCounter(0x106b,1) then
e1:SetRange(LOCATION_MZONE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCondition(s.mtcon) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetValue(1) e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
tc:RegisterEffect(e1) e1:SetRange(LOCATION_MZONE)
local e2=e1:Clone() e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(s.fuslimit) e1:SetCondition(s.mtcon)
e2:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL) e1:SetValue(1)
tc:RegisterEffect(e2) tc:RegisterEffect(e1)
local e3=e1:Clone() local e2=e1:Clone()
e3:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL) e1:SetValue(s.fuslimit)
tc:RegisterEffect(e3) e2:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL)
local e4=e1:Clone() tc:RegisterEffect(e2)
e4:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL) local e3=e1:Clone()
tc:RegisterEffect(e4) e3:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL)
tc:RegisterEffect(e3)
local e4=e1:Clone()
e4:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
tc:RegisterEffect(e4)
end
end end
end end
function s.mtcon(e) function s.mtcon(e)
......
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