Commit 86669253 authored by mercury233's avatar mercury233

fix

parent 0e58b0f3
......@@ -14,7 +14,7 @@ function c100273006.initial_effect(c)
--add/ss rock monster
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100273006,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_BATTLE_DESTROYED)
......
......@@ -15,7 +15,7 @@ function c100273010.initial_effect(c)
--To GY
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100273010,1))
e2:SetCategory(CATEGORY_DRAW+CATEGORY_TODECK)
e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
......
......@@ -5,7 +5,6 @@ function c100273012.initial_effect(c)
--Special Summon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_HANDES+CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c100273012.condition)
......
......@@ -29,9 +29,6 @@ function c100273016.initial_effect(c)
c:RegisterEffect(e2)
if not c100273016.global_check then
c100273016.global_check=true
c100273016[0]=nil
c100273016[1]=nil
c100273016[2]=nil
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_DETACH_MATERIAL)
......@@ -86,7 +83,7 @@ function c100273016.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
tc:RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c100273016.filter(c,e,tp)
return c:IsType(TYPE_NORMAL) and (c:IsAttack(0) or c:IsDefense(0)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsType(TYPE_NORMAL) and (c:IsAttack(0) or c:IsDefense(0)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end
function c100273016.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -98,7 +95,7 @@ function c100273016.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetMZoneCount(tp)<1 then return end
if Duel.GetMZoneCount(tp)<2 or Duel.IsPlayerAffectedByEffect(tp,59822133) then max=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c100273016.filter,tp,LOCATION_GRAVE,0,1,max,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c100273016.filter),tp,LOCATION_GRAVE,0,1,max,nil,e,tp)
for tc in aux.Next(g) do
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
local e1=Effect.CreateEffect(tc)
......
......@@ -50,7 +50,7 @@ function c100273017.atkfilter(c)
return c:IsCode(75574498) and c:IsFaceup()
end
function c100273017.atkcon(e)
return Duel.IsExistingMatchingCard(c100273017.atkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
return Duel.IsExistingMatchingCard(c100273017.atkfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
end
function c100273017.atkval(e,c)
return c:IsFaceup() and (c:IsAttack(0) or c:IsDefense(0))
......
......@@ -19,6 +19,7 @@ function c100273018.initial_effect(c)
e2:SetCategory(CATEGORY_TOEXTRA)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,100273018)
e2:SetCost(c100273018.tdcost)
e2:SetTarget(c100273018.tdtg)
......
......@@ -29,6 +29,7 @@ function c100273019.initial_effect(c)
e3:SetDescription(aux.Stringid(100273019,1))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCountLimit(1)
e3:SetCondition(c100273019.mtcon)
e3:SetTarget(c100273019.mttg)
......
......@@ -13,6 +13,7 @@ function c100273020.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_SZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,100273020)
e2:SetCost(c100273020.cost)
e2:SetTarget(c100273020.target)
......
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