Commit 3eb30a4d authored by salix5's avatar salix5

Merge pull request #213 from nekrozar/patch-2

fix Majester Paladin, Majespecter Cat
parents 0d564fc0 a3e29261
......@@ -9,6 +9,7 @@ function c5506791.initial_effect(c)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e2:SetCountLimit(1,5506791)
e2:SetTarget(c5506791.regtg)
e2:SetOperation(c5506791.regop)
c:RegisterEffect(e2)
local e3=e2:Clone()
......@@ -34,6 +35,9 @@ end
function c5506791.thfilter(c)
return c:IsSetCard(0xd0) and c:IsAbleToHand()
end
function c5506791.regtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0xd0) end
end
function c5506791.regop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......
......@@ -9,6 +9,7 @@ function c88722973.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c88722973.regcon)
e1:SetTarget(c88722973.regtg)
e1:SetOperation(c88722973.regop)
c:RegisterEffect(e1)
--spsummon
......@@ -25,6 +26,9 @@ end
function c88722973.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
end
function c88722973.regtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_DECK,0,1,nil,TYPE_PENDULUM) end
end
function c88722973.regop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......
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