Commit 2d0b1f9f authored by VanillaSalt's avatar VanillaSalt

fix

parent 8b1690f3
......@@ -27,7 +27,7 @@ function c11398951.mfilterf(c,tp,mg,rc)
else return false end
end
function c11398951.mfilter(c)
return c:IsRace(RACE_WARRIOR+RACE_FAIRY) and c:IsAbleToDeck()
return c:GetLevel()>0 and c:IsRace(RACE_WARRIOR+RACE_FAIRY) and c:IsAbleToDeck()
end
function c11398951.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -42,7 +42,7 @@ function c14735698.mfilterf(c,tp,mg,rc)
else return false end
end
function c14735698.mfilter(c)
return c:IsSetCard(0xb4) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
return c:GetLevel()>0 and c:IsSetCard(0xb4) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function c14735698.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -27,7 +27,7 @@ function c45410988.mfilterf(c,tp,mg,rc)
else return false end
end
function c45410988.mfilter(c)
return c:IsSetCard(0x3b) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
return c:GetLevel()>0 and c:IsSetCard(0x3b) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function c45410988.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -32,12 +32,13 @@ function c45894482.spcon(e,c)
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c45894482.trigop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
local c=e:GetHandler()
if c:GetSummonType()==SUMMON_TYPE_SPECIAL+1
and e:GetLabelObject():IsActivatable(tp)
and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c45894482.filter,1-tp,LOCATION_GRAVE,0,1,nil,e,1-tp)
and Duel.SelectYesNo(1-tp,aux.Stringid(45894482,1)) then
Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+45894482,e,r,rp,tp,0)
and Duel.SelectEffectYesNo(1-tp,c) then
Duel.RaiseSingleEvent(c,EVENT_CUSTOM+45894482,e,r,rp,tp,0)
end
end
function c45894482.filter(c,e,tp)
......
......@@ -23,8 +23,8 @@ function c54297661.filter(c,tp)
end
function c54297661.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c54297661.filter(chkc,tp) end
if chk==0 then return Duel.IsExistingTarget(c54297661.filter,tp,0,LOCATION_MZONE,1,nil,tp)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2
and Duel.IsExistingTarget(c54297661.filter,tp,0,LOCATION_MZONE,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c54297661.filter,tp,0,LOCATION_MZONE,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
......
......@@ -28,7 +28,7 @@ function c73055622.mfilterf(c,tp,mg,rc)
else return false end
end
function c73055622.mfilter(c)
return c:IsType(TYPE_SPIRIT) and c:IsAbleToRemove()
return c:GetLevel()>0 and c:IsType(TYPE_SPIRIT) and c:IsAbleToRemove()
end
function c73055622.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -34,12 +34,13 @@ function c7409792.spcon(e,c)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function c7409792.trigop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
local c=e:GetHandler()
if c:GetSummonType()==SUMMON_TYPE_SPECIAL+1
and e:GetLabelObject():IsActivatable(tp)
and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c7409792.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,tp)
and Duel.SelectYesNo(1-tp,aux.Stringid(7409792,1)) then
Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+7409792,e,r,rp,tp,0)
and Duel.SelectEffectYesNo(1-tp,c) then
Duel.RaiseSingleEvent(c,EVENT_CUSTOM+7409792,e,r,rp,tp,0)
end
end
function c7409792.filter(c,e,tp)
......
......@@ -2,7 +2,7 @@
function c80033124.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c80033124.target)
......
......@@ -61,6 +61,7 @@ function c8809344.operation(e,tp,eg,ep,ev,re,r,rp)
if og:GetCount()==0 then return end
Duel.SendtoGrave(og,REASON_EFFECT)
Duel.Overlay(c,Group.FromCards(tc))
if c:IsFacedown() then return end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
......
......@@ -7,35 +7,56 @@ function c93671934.initial_effect(c)
c:RegisterEffect(e1)
--recover
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_SZONE)
e2:SetCategory(CATEGORY_RECOVER)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_EQUIP)
e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c93671934.reccon)
e2:SetTarget(c93671934.rectg)
e2:SetOperation(c93671934.recop)
c:RegisterEffect(e2)
--damage
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetRange(LOCATION_SZONE)
e3:SetCategory(CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetRange(LOCATION_SZONE)
e3:SetCondition(c93671934.damcon)
e3:SetTarget(c93671934.damtg)
e3:SetOperation(c93671934.damop)
c:RegisterEffect(e3)
end
function c93671934.reccon(e,tp,eg,ep,ev,re,r,rp)
e:SetLabel(eg:GetFirst():GetControler())
return true
end
function c93671934.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,e:GetLabel(),1000)
end
function c93671934.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(eg:GetFirst():GetControler(),1000,REASON_EFFECT)
Duel.Recover(e:GetLabel(),1000,REASON_EFFECT)
end
function c93671934.filter(c)
return c:GetEquipTarget()~=nil or c:IsReason(REASON_LOST_TARGET)
end
function c93671934.damcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c93671934.filter,1,nil)
local flag=0
local g=eg:Filter(c93671934.filter,nil)
if g:IsExists(Card.IsControler,1,nil,0) then flag=flag+1 end
if g:IsExists(Card.IsControler,1,nil,1) then flag=flag+2 end
e:SetLabel(({0,1,PLAYER_ALL})[flag])
return true
end
function c93671934.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,e:GetLabel(),1000)
end
function c93671934.damop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c93671934.filter,nil)
if g:IsExists(Card.IsControler,1,nil,tp) then
if e:GetLabel()~=1-tp then
Duel.Damage(tp,1000,REASON_EFFECT,true)
end
if g:IsExists(Card.IsControler,1,nil,1-tp) then
if e:GetLabel()~=tp then
Duel.Damage(1-tp,1000,REASON_EFFECT,true)
end
Duel.RDComplete()
......
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