Commit 47066dc3 authored by VanillaSalt's avatar VanillaSalt

fix

parent 6bc4ec03
......@@ -29,8 +29,7 @@ function c11039171.splimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
function c11039171.mfilter(c,mg)
return (c:IsCode(30068120) or c:IsHasEffect(EFFECT_FUSION_SUBSTITUTE))
and mg:IsExists(Card.IsSetCard,1,c,0xa9)
return c:IsCode(30068120) and mg:IsExists(Card.IsSetCard,1,c,0xa9)
end
function c11039171.fscon(e,mg,gc)
if mg==nil then return false end
......
......@@ -46,11 +46,11 @@ end
function c12948099.tdop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c12948099.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetCount()>0 then
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
Duel.SendtoDeck(g,nil,0,REASON_EFFECT)
end
end
function c12948099.drcon(e,tp,eg,ep,ev,re,r,rp)
return r==REASON_SYNCHRO
return r==REASON_FUSION
end
function c12948099.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -70,7 +70,7 @@ function c21954587.thop(e,tp,eg,ep,ev,re,r,rp)
end
function c21954587.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()~=1 and Duel.GetCurrentPhase()==PHASE_MAIN1
and not Duel.IsPlayerAffectedByEffect(tp,EFFECT_CANNOT_BP)
and not Duel.IsPlayerAffectedByEffect(tp,EFFECT_CANNOT_BP)
end
function c21954587.rfilter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAttribute(ATTRIBUTE_WATER)
......
......@@ -9,23 +9,23 @@ function c30741334.initial_effect(c)
e1:SetDescription(aux.Stringid(30741334,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(3,30741334)
e1:SetCost(c30741334.cost)
e1:SetTarget(c30741334.target)
e1:SetOperation(c30741334.operation)
c:RegisterEffect(e1)
end
function c30741334.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCurrentPhase()==PHASE_MAIN1 and Duel.GetFlagEffect(tp,30741334)<3
if chk==0 then return Duel.GetCurrentPhase()==PHASE_MAIN1
and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BP)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,30741334,RESET_PHASE+PHASE_END,0,1)
end
function c30741334.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
......@@ -32,7 +32,7 @@ function c42199039.initial_effect(c)
e4:SetDescription(aux.Stringid(42199039,1))
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e4:SetCode(EVENT_TO_GRAVE)
e4:SetCondition(c42199039.thcon)
e4:SetTarget(c42199039.thtg)
......
......@@ -53,7 +53,7 @@ end
function c51617185.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not eg:IsContains(e:GetHandler()) and eg:IsExists(c51617185.cfilter,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=eg:FilterSelect(tp,c51617185.cfilter,tp,1,1,nil)
local g=eg:FilterSelect(tp,c51617185.cfilter,1,1,nil,tp)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c51617185.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -23,6 +23,7 @@ function c64496451.initial_effect(c)
e3:SetRange(LOCATION_SZONE)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xaa))
e3:SetCondition(c64496451.pendcon)
e3:SetValue(300)
c:RegisterEffect(e3)
......
......@@ -31,7 +31,7 @@ function c65331686.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND)
end
function c65331686.thfilter(c)
return c:IsCode(65331686) and c:IsAbleToHand()
return c:IsCode(24094653) and c:IsAbleToHand()
end
function c65331686.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c65331686.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -6,6 +6,7 @@ function c86559484.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,86559484)
e1:SetCost(c86559484.spcost)
e1:SetTarget(c86559484.sptg)
e1:SetOperation(c86559484.spop)
......@@ -16,7 +17,8 @@ function c86559484.initial_effect(c)
e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,86559485)
e2:SetCondition(c86559484.damcon)
e2:SetTarget(c86559484.damtg)
e2:SetOperation(c86559484.damop)
......
......@@ -23,6 +23,7 @@ function c91907707.initial_effect(c)
e3:SetRange(LOCATION_SZONE)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xaa))
e3:SetCondition(c91907707.pendcon)
e3:SetValue(300)
c:RegisterEffect(e3)
......
......@@ -14,7 +14,7 @@ function c9287078.initial_effect(c)
c:RegisterEffect(e2)
end
function c9287078.filter1(c,e,tp)
return c:GetSummonPlayer()==1-tp and c:IsCanBeEffectTarget(e)
return c:GetSummonPlayer()==1-tp and c:IsLocation(LOCATION_MZONE) and c:IsCanBeEffectTarget(e)
and Duel.IsExistingTarget(c9287078.filter2,tp,LOCATION_MZONE,0,1,c)
end
function c9287078.filter2(c)
......
......@@ -46,7 +46,7 @@ end
function c93016201.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
e:SetLabel(0)
if not Duel.CheckLPCost(tp,800) then return end
if not Duel.CheckLPCost(tp,800) then return end
local ct=Duel.GetCurrentChain()
if ct==1 then return end
local pe=Duel.GetChainInfo(ct-1,CHAININFO_TRIGGERING_EFFECT)
......
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