Commit e6958ec4 authored by POLYMER's avatar POLYMER

fix

parent 9afdceb0
...@@ -6,7 +6,7 @@ function c10150018.initial_effect(c) ...@@ -6,7 +6,7 @@ function c10150018.initial_effect(c)
e1:SetCode(EFFECT_ADD_SETCODE) e1:SetCode(EFFECT_ADD_SETCODE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE+LOCATION_GRAVE) e1:SetRange(LOCATION_MZONE+LOCATION_GRAVE)
e1:SetValue(0x19) e1:SetValue(0x1019)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--change effect --change effect
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -22,7 +22,7 @@ function c10150018.initial_effect(c) ...@@ -22,7 +22,7 @@ function c10150018.initial_effect(c)
end end
function c10150018.chcon(e,tp,eg,ep,ev,re,r,rp) function c10150018.chcon(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
return rp==tp and re:IsActiveType(TYPE_MONSTER) and rc:IsSetCard(0x19) return rp==tp and re:IsActiveType(TYPE_MONSTER) and rc:IsSetCard(0x1019)
end end
function c10150018.chtg(e,tp,eg,ep,ev,re,r,rp,chk) function c10150018.chtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(rp,LOCATION_MZONE)>=2 and Duel.IsExistingMatchingCard(c10150018.spfilter,rp,0x13,0,1,nil,e,rp,re:GetHandler()) end if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(rp,LOCATION_MZONE)>=2 and Duel.IsExistingMatchingCard(c10150018.spfilter,rp,0x13,0,1,nil,e,rp,re:GetHandler()) end
...@@ -50,5 +50,5 @@ function c10150018.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,5 +50,5 @@ function c10150018.repop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c10150018.spfilter(c,e,tp,rc) function c10150018.spfilter(c,e,tp,rc)
return not c:IsCode(rc:GetCode()) and c:IsSetCard(0x19) and c:IsCanBeSpecialSummoned(e,SUMMON_VALUE_GLADIATOR,tp,false,false) return not c:IsCode(rc:GetCode()) and c:IsSetCard(0x1019) and c:IsCanBeSpecialSummoned(e,SUMMON_VALUE_GLADIATOR,tp,false,false)
end 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