Commit bb998c4c authored by POLYMER's avatar POLYMER

fix

parent 42ee9a03
......@@ -44,10 +44,12 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
function s.ffilter(c,fc,sub,mg,sg)
return (not sg or sg:FilterCount(aux.TRUE,c)==0 or sg:IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute())) and c:IsRace(RACE_DINOSAUR)
if not sg then return true end
return sg:IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute())
and c:IsRace(RACE_DINOSAUR)
end
function s.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
return not (e:GetHandler():IsLocation(LOCATION_EXTRA) and e:GetHandler():IsFacedown())
end
function s.lztg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)
......
......@@ -12,6 +12,7 @@ function c28318460.initial_effect(c)
e1:SetCategory(CATEGORY_RECOVER+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c28318460.target)
e1:SetOperation(c28318460.activate)
c:RegisterEffect(e1)
--grave copy
......@@ -28,6 +29,11 @@ end
function c28318460.condition(e)
return Duel.GetTurnPlayer()==e:GetHandlerPlayer()
end
function c28318460.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c28318460.thfilter(c)
return c:IsSetCard(0x287) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
......
......@@ -12,6 +12,7 @@ function c28319011.initial_effect(c)
e1:SetCategory(CATEGORY_RECOVER+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c28319011.target)
e1:SetOperation(c28319011.activate)
c:RegisterEffect(e1)
--grave copy
......@@ -28,6 +29,11 @@ end
function c28319011.condition(e)
return Duel.GetTurnPlayer()==e:GetHandlerPlayer()
end
function c28319011.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c28319011.cfilter(c,oc)
return c:IsFaceup() and c:IsCode(oc:GetCode())
end
......
......@@ -12,6 +12,7 @@ function c28319111.initial_effect(c)
e1:SetCategory(CATEGORY_RECOVER+CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c28319111.target)
e1:SetOperation(c28319111.activate)
c:RegisterEffect(e1)
--grave copy
......@@ -28,6 +29,11 @@ end
function c28319111.condition(e)
return Duel.GetTurnPlayer()==e:GetHandlerPlayer()
end
function c28319111.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,3,tp,LOCATION_DECK)
end
function c28319111.ccfilter(c)
return bit.band(c:GetType(),0x7)
end
......
......@@ -13,11 +13,11 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(83965310,0))
e2:SetDescription(aux.Stringid(m,0))
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_HAND)
e2:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e2:SetCondition(cm.spcon)
e2:SetTarget(cm.sptg)
e2:SetOperation(cm.spop)
......
......@@ -33,6 +33,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetCountLimit(1,id)
e3:SetCondition(s.spcon)
e3:SetTarget(s.sptg)
e3:SetOperation(s.spop)
......@@ -43,6 +44,7 @@ function s.initial_effect(c)
e5:SetCategory(CATEGORY_SPECIAL_SUMMON)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e5:SetCountLimit(1,id)
e5:SetCode(EVENT_LEAVE_FIELD)
e5:SetCondition(s.spcon2)
e5:SetTarget(s.sptg1)
......
......@@ -26,6 +26,8 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.sprcon(e,tp,eg,ep,ev,re,r,rp)
if c==nil then return true end
local tp=c:GetControler()
return (Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 or Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_GRAVE,1,nil,TYPE_MONSTER))
end
function s.sprop(e,tp,eg,ep,ev,re,r,rp,c)
......
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