Commit 0ebebc9a authored by VanillaSalt's avatar VanillaSalt

tweak

parent 6096fc90
...@@ -60,7 +60,7 @@ function c15610297.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,7 @@ function c15610297.disop(e,tp,eg,ep,ev,re,r,rp)
bc:RegisterEffect(e2) bc:RegisterEffect(e2)
end end
end end
function c15610297.condition(e,tp,eg,ep,ev,re,r,rp) function c15610297.condition(e)
return e:GetHandler():GetCounter(0x1038)>0 return e:GetHandler():GetCounter(0x1038)>0
end end
function c15610297.spcon(e,tp,eg,ep,ev,re,r,rp) function c15610297.spcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -80,7 +80,7 @@ end ...@@ -80,7 +80,7 @@ end
function c3775068.spfilter(c,e,tp) function c3775068.spfilter(c,e,tp)
return c:IsSetCard(0xe3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xe3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c3775068.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c3775068.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3775068.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3775068.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c3775068.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c3775068.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
......
...@@ -12,7 +12,7 @@ function c40392714.initial_effect(c) ...@@ -12,7 +12,7 @@ function c40392714.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--Damage --Damage
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DESTROY) e3:SetCategory(CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
...@@ -39,6 +39,7 @@ function c40392714.spcon(e,c) ...@@ -39,6 +39,7 @@ function c40392714.spcon(e,c)
and Duel.IsExistingMatchingCard(c40392714.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c40392714.filter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end end
function c40392714.spop(e,tp,eg,ep,ev,re,r,rp,c) function c40392714.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c40392714.filter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c40392714.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -30,6 +30,7 @@ function c41114306.spcon(e,c) ...@@ -30,6 +30,7 @@ function c41114306.spcon(e,c)
and Duel.IsExistingMatchingCard(c41114306.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c41114306.filter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end end
function c41114306.spop(e,tp,eg,ep,ev,re,r,rp,c) function c41114306.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c41114306.filter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c41114306.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -8,7 +8,7 @@ function c42237854.initial_effect(c) ...@@ -8,7 +8,7 @@ function c42237854.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c42237854.target) e1:SetTarget(c42237854.target)
e1:SetOperation(c42237854.activate) e1:SetOperation(c42237854.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--atk limit --atk limit
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
...@@ -75,7 +75,6 @@ function c42237854.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,7 +75,6 @@ function c42237854.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
local tc=tg:GetFirst() local tc=tg:GetFirst()
while tc do while tc do
local atk=tc:GetTextAttack()
Duel.Equip(tp,tc,c,false,true) Duel.Equip(tp,tc,c,false,true)
tc:RegisterFlagEffect(42237854,RESET_EVENT+0x1fe0000,0,0) tc:RegisterFlagEffect(42237854,RESET_EVENT+0x1fe0000,0,0)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -42,6 +42,7 @@ function c4998619.spcon(e,c) ...@@ -42,6 +42,7 @@ function c4998619.spcon(e,c)
and Duel.IsExistingMatchingCard(c4998619.filter,c:GetControler(),LOCATION_MZONE,0,3,nil) and Duel.IsExistingMatchingCard(c4998619.filter,c:GetControler(),LOCATION_MZONE,0,3,nil)
end end
function c4998619.spop(e,tp,eg,ep,ev,re,r,rp,c) function c4998619.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c4998619.filter,tp,LOCATION_MZONE,0,3,3,nil) local g=Duel.SelectMatchingCard(tp,c4998619.filter,tp,LOCATION_MZONE,0,3,3,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -13,6 +13,7 @@ function c54297661.initial_effect(c) ...@@ -13,6 +13,7 @@ function c54297661.initial_effect(c)
end end
function c54297661.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c54297661.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_MZONE,0,2,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_MZONE,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemoveAsCost,tp,LOCATION_MZONE,0,2,2,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemoveAsCost,tp,LOCATION_MZONE,0,2,2,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
...@@ -20,7 +21,8 @@ function c54297661.filter(c,tp) ...@@ -20,7 +21,8 @@ function c54297661.filter(c,tp)
return c:IsFaceup() return c:IsFaceup()
and Duel.IsPlayerCanSpecialSummonMonster(tp,54297661,0,0x21,c:GetAttack(),c:GetDefence(),4,RACE_SPELLCASTER,ATTRIBUTE_DARK) and Duel.IsPlayerCanSpecialSummonMonster(tp,54297661,0,0x21,c:GetAttack(),c:GetDefence(),4,RACE_SPELLCASTER,ATTRIBUTE_DARK)
end end
function c54297661.target(e,tp,eg,ep,ev,re,r,rp,chk) 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) if chk==0 then return Duel.IsExistingTarget(c54297661.filter,tp,0,LOCATION_MZONE,1,nil,tp)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
......
...@@ -18,7 +18,6 @@ function c7198399.initial_effect(c) ...@@ -18,7 +18,6 @@ function c7198399.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_BE_BATTLE_TARGET) e2:SetCode(EVENT_BE_BATTLE_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetTarget(c7198399.sptg) e2:SetTarget(c7198399.sptg)
e2:SetOperation(c7198399.spop) e2:SetOperation(c7198399.spop)
......
...@@ -12,7 +12,7 @@ function c77387463.initial_effect(c) ...@@ -12,7 +12,7 @@ function c77387463.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--Damage --Damage
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DESTROY) e3:SetCategory(CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
...@@ -39,6 +39,7 @@ function c77387463.spcon(e,c) ...@@ -39,6 +39,7 @@ function c77387463.spcon(e,c)
and Duel.IsExistingMatchingCard(c77387463.filter,c:GetControler(),LOCATION_MZONE,0,2,nil) and Duel.IsExistingMatchingCard(c77387463.filter,c:GetControler(),LOCATION_MZONE,0,2,nil)
end end
function c77387463.spop(e,tp,eg,ep,ev,re,r,rp,c) function c77387463.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c77387463.filter,tp,LOCATION_MZONE,0,2,2,nil) local g=Duel.SelectMatchingCard(tp,c77387463.filter,tp,LOCATION_MZONE,0,2,2,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -36,6 +36,7 @@ function c78509901.spcon(e,c) ...@@ -36,6 +36,7 @@ function c78509901.spcon(e,c)
and Duel.IsExistingMatchingCard(c78509901.filter,c:GetControler(),LOCATION_MZONE,0,2,nil) and Duel.IsExistingMatchingCard(c78509901.filter,c:GetControler(),LOCATION_MZONE,0,2,nil)
end end
function c78509901.spop(e,tp,eg,ep,ev,re,r,rp,c) function c78509901.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c78509901.filter,tp,LOCATION_MZONE,0,2,2,nil) local g=Duel.SelectMatchingCard(tp,c78509901.filter,tp,LOCATION_MZONE,0,2,2,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -19,7 +19,6 @@ function c80560728.initial_effect(c) ...@@ -19,7 +19,6 @@ function c80560728.initial_effect(c)
--mulit attack --mulit attack
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(80560728,0)) e3:SetDescription(aux.Stringid(80560728,0))
e3:SetCategory(CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_DAMAGE_STEP_END) e3:SetCode(EVENT_DAMAGE_STEP_END)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
......
...@@ -46,7 +46,7 @@ end ...@@ -46,7 +46,7 @@ end
function c82627406.ctfilter(c) function c82627406.ctfilter(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x20a2) return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x20a2)
end end
function c82627406.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c82627406.operation(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetMatchingGroup(c82627406.atkfilter,tp,LOCATION_MZONE,0,nil) local tg=Duel.GetMatchingGroup(c82627406.atkfilter,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(c82627406.ctfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil) local g=Duel.GetMatchingGroup(c82627406.ctfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil)
if tg:GetCount()>0 and g:GetCount()>0 then if tg:GetCount()>0 and g:GetCount()>0 then
......
...@@ -13,14 +13,14 @@ end ...@@ -13,14 +13,14 @@ end
function c94561645.condition(e,tp,eg,ep,ev,re,r,rp) function c94561645.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil return Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil
end end
function c94561645.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c94561645.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end end
function c94561645.activate(e,tp,eg,ep,ev,re,r,rp) function c94561645.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateAttack() and Duel.Draw(tp,1,REASON_EFFECT)~=0 then if Duel.NegateAttack() and Duel.Draw(tp,1,REASON_EFFECT)~=0 then
local tc=Duel.GetOperatedGroup():GetFirst() local tc=Duel.GetOperatedGroup():GetFirst()
if tc:IsType(TYPE_MONSTER) and tc:IsSummonable(true,nil) if tc:IsType(TYPE_MONSTER) and tc:IsSummonable(true,nil)
and Duel.SelectYesNo(tp,aux.Stringid(94561645,0)) then and Duel.SelectYesNo(tp,aux.Stringid(94561645,0)) then
Duel.Summon(tp,tc,true,nil) Duel.Summon(tp,tc,true,nil)
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