Commit a4896bde authored by VanillaSalt's avatar VanillaSalt

fix

parent 4916c325
......@@ -69,7 +69,6 @@ function c14470845.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK)
end
function c14470845.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.GetMatchingGroup(c14470845.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
if not Duel.IsPlayerAffectedByEffect(tp,59822133) and ft>1 and g:GetClassCount(Card.GetCode)>1 then
......
......@@ -49,7 +49,7 @@ function c2414168.defcon(e,tp,eg,ep,ev,re,r,rp)
e:SetLabelObject(d)
return a:IsControler(1-tp) and d and d:IsDefensePos() and d:IsControler(tp) and d~=e:GetHandler()
end
function c44891812.defop(e,tp,eg,ep,ev,re,r,rp)
function c2414168.defop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=e:GetLabelObject()
if tc:IsRelateToBattle() and tc:IsFaceup() and c:IsRelateToEffect(e) and c:IsFaceup() then
......
......@@ -26,7 +26,7 @@ function c28593329.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(at,REASON_COST)
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end
function c28593329.target(e,tp,eg,ep,ev,re,r,rp,chk)
function c28593329.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local at=Duel.GetAttackTarget()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() and chkc~=at end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,at) end
......
......@@ -9,7 +9,7 @@ function c39998992.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_LEAVE_FIELD)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCondition(c39998992.spcon)
e1:SetTarget(c39998992.sptg)
e1:SetOperation(c39998992.spop)
......
......@@ -4,6 +4,7 @@ function c43803845.initial_effect(c)
--cannot be target/effect indestructable
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(aux.IsDualState)
......
......@@ -3,9 +3,9 @@ function c46083111.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(46083111,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,46083111)
e1:SetTarget(c46083111.tgtg)
e1:SetOperation(c46083111.tgop)
......
......@@ -33,7 +33,7 @@ function c5043010.initial_effect(c)
e4:SetDescription(aux.Stringid(5043010,1))
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetCode(EVENT_CUSTOM+5043010)
e4:SetRange(LOCATION_MZONE)
e4:SetTarget(c5043010.sptg)
......
......@@ -34,10 +34,10 @@ function c53143898.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
end
end
function c53143898.thfilter1(c,e,tp)
function c53143898.thfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x103) and c:IsAbleToGrave()
end
function c53143898.thfilter2(c,e,tp)
function c53143898.thfilter2(c)
return c:IsFaceup() and c:IsSetCard(0x103) and c:IsAbleToGrave() and c:GetSequence()<5
end
function c53143898.spfilter(c,e,tp)
......
......@@ -17,7 +17,7 @@ function c5560911.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end
function c5560911.filter(c,ft)
function c5560911.filter(c)
return c:IsFaceup() and c:IsLevelBelow(6)
end
function c5560911.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -11,7 +11,7 @@ function c6783559.initial_effect(c)
c:RegisterEffect(e1)
--damage
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(44852429,1))
e2:SetDescription(aux.Stringid(6783559,1))
e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -58,13 +58,14 @@ function c83477829.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c83477829.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tc=Duel.SelectMatchingCard(tp,c83477829.filter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
if tc then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
end
end
function c83477829.thcon(e)
function c83477829.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==0
end
......
......@@ -29,7 +29,7 @@ function c94626871.cfilter(c,tp,zone)
return c:IsPreviousLocation(LOCATION_MZONE) and bit.extract(zone,seq)~=0
end
function c94626871.damcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c94626871.cfilter,1,nil,e:GetHandler():GetLinkedZone())
return eg:IsExists(c94626871.cfilter,1,nil,tp,e:GetHandler():GetLinkedZone())
end
function c94626871.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,94626871)
......
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