Commit caba7e1f authored by VanillaSalt's avatar VanillaSalt

fix

parent af509916
...@@ -53,7 +53,7 @@ function c26556950.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c26556950.regop(e,tp,eg,ep,ev,re,r,rp)
end end
function c26556950.damcon(e,tp,eg,ep,ev,re,r,rp) function c26556950.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetOverlayCount()>0 and ep~=tp and c:GetFlagEffect(26556950)~=0 return c:GetOverlayCount()>0 and ep~=tp and c:GetFlagEffect(26556950)~=0 and re:IsHasType(EFFECT_TYPE_ACTIVATE)
end end
function c26556950.damop(e,tp,eg,ep,ev,re,r,rp) function c26556950.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,26556950) Duel.Hint(HINT_CARD,0,26556950)
......
...@@ -85,9 +85,7 @@ function c67547370.efilter(e,te) ...@@ -85,9 +85,7 @@ function c67547370.efilter(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
end end
function c67547370.atkcon(e,tp,eg,ep,ev,re,r,rp) function c67547370.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() return e:GetHandler():GetBattleTarget()
local bc=c:GetBattleTarget()
return bc and bc:IsControler(1-tp)
end end
function c67547370.atkop(e,tp,eg,ep,ev,re,r,rp) function c67547370.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -18,7 +18,7 @@ function c78274190.initial_effect(c) ...@@ -18,7 +18,7 @@ function c78274190.initial_effect(c)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(78274190,0)) e4:SetDescription(aux.Stringid(78274190,0))
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_BATTLED) e4:SetCode(EVENT_BATTLE_DESTROYING)
e4:SetRange(LOCATION_PZONE) e4:SetRange(LOCATION_PZONE)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetCondition(c78274190.cacon) e4:SetCondition(c78274190.cacon)
......
...@@ -19,7 +19,7 @@ function c86157908.initial_effect(c) ...@@ -19,7 +19,7 @@ function c86157908.initial_effect(c)
e3:SetCategory(CATEGORY_RECOVER) e3:SetCategory(CATEGORY_RECOVER)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SUMMON_SUCCESS) e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET)
e3:SetTarget(c86157908.target) e3:SetTarget(c86157908.target)
e3:SetOperation(c86157908.operation) e3:SetOperation(c86157908.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -70,7 +70,7 @@ function c94689206.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function c94689206.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c94689206.thfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c94689206.thfilter,tp,LOCATION_DECK,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:SelectWithSumEqual(tp,Card.GetLevel,8,1,3) local sg=g:SelectWithSumEqual(tp,Card.GetLevel,8,1,3)
if sg:GetCount()>0 then if sg and sg:GetCount()>0 then
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
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