Commit b086b885 authored by salix5's avatar salix5

Merge pull request #1054 from sidschingis/warrior-setcode

Warrior setcodes
parents a08827c9 559879c4
......@@ -34,7 +34,7 @@ function c12525049.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c12525049.spfilter(c,e,tp)
return c:IsSetCard(0x66) and not c:IsCode(12525049) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x1066) and not c:IsCode(12525049) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c12525049.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -42,7 +42,6 @@ function c12525049.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c12525049.spop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c12525049.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
......@@ -51,7 +50,7 @@ function c12525049.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c12525049.filter(c,e,tp)
return c:IsSetCard(0x66) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x1066) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c12525049.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c12525049.filter(chkc,e,tp) end
......
......@@ -25,7 +25,7 @@ function c31826057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c31826057.filter(c)
return c:IsFaceup() and c:IsSetCard(0x66) and c:IsLevelAbove(1)
return c:IsFaceup() and c:IsSetCard(0x1066) and c:IsLevelAbove(1)
end
function c31826057.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c31826057.filter(chkc) end
......
......@@ -29,7 +29,7 @@ function c36736723.atkcon(e,tp,eg,ep,ev,re,r,rp)
if not tc then return false end
if tc:IsControler(1-tp) then tc=Duel.GetAttacker() end
e:SetLabelObject(tc)
return tc and tc:IsRelateToBattle() and tc:IsSetCard(0xc1) and tc:IsType(TYPE_SYNCHRO)
return tc and tc:IsRelateToBattle() and tc:IsSetCard(0x66) and tc:IsType(TYPE_SYNCHRO)
end
function c36736723.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
......@@ -25,7 +25,7 @@ function c68933343.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c68933343.filter(c)
return c:IsFaceup() and c:IsSetCard(0x66) and c:IsLevelAbove(1)
return c:IsFaceup() and c:IsSetCard(0x1066) and c:IsLevelAbove(1)
end
function c68933343.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c68933343.filter(chkc) end
......
......@@ -72,7 +72,7 @@ function c74892653.sccon(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousPosition(POS_FACEUP)
end
function c74892653.filter(c,e,tp)
return c:IsSetCard(0xc1) and c:IsLevelBelow(8) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false)
return c:IsSetCard(0x66) and c:IsLevelBelow(8) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false)
end
function c74892653.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -20,7 +20,7 @@ function c75304793.initial_effect(c)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetRange(LOCATION_FZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x66))
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1066))
e3:SetValue(c75304793.atkval)
c:RegisterEffect(e3)
--counter
......@@ -34,7 +34,7 @@ function c75304793.initial_effect(c)
c:RegisterEffect(e4)
end
function c75304793.ctcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsSetCard(0x66) and not re:IsHasType(EFFECT_TYPE_ACTIVATE)
return re and re:GetHandler():IsSetCard(0x1066) and not re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c75304793.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x35,1)
......@@ -43,7 +43,7 @@ function c75304793.atkval(e,c)
return e:GetHandler():GetCounter(0x35)*100
end
function c75304793.filter(c)
return c:IsFaceup() and c:IsSetCard(0x66)
return c:IsFaceup() and c:IsSetCard(0x1066)
end
function c75304793.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.GetMatchingGroupCount(c75304793.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
......
......@@ -25,7 +25,7 @@ function c94331452.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c94331452.filter(c)
return c:IsFaceup() and c:IsSetCard(0x66) and c:IsLevelAbove(1)
return c:IsFaceup() and c:IsSetCard(0x1066) and c:IsLevelAbove(1)
end
function c94331452.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c94331452.filter(chkc) end
......
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