Commit 30eafc47 authored by VanillaSalt's avatar VanillaSalt

fix

parent 9a0710e4
......@@ -3,6 +3,7 @@ function c19025379.initial_effect(c)
c:EnableReviveLimit()
--destroy monster
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(19025379,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
......@@ -15,6 +16,7 @@ function c19025379.initial_effect(c)
c:RegisterEffect(e1)
--destroy spell & trap
local e2=e1:Clone()
e2:SetDescription(aux.Stringid(19025379,1))
e2:SetTarget(c19025379.destg2)
e2:SetOperation(c19025379.desop2)
c:RegisterEffect(e2)
......
......@@ -65,5 +65,5 @@ function c19747827.cfilter(c)
return c:IsFaceup() and c:IsRace(RACE_DRAGON)
end
function c19747827.atkval(e,c)
return Duel.GetMatchingGroupCount(c19747827.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil)*500
return Duel.GetMatchingGroupCount(c19747827.cfilter,0,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil)*500
end
......@@ -49,7 +49,8 @@ function c30100551.drop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c30100551.descon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and e:GetHandler():IsReason(REASON_BATTLE+REASON_EFFECT)
local c=e:GetHandler()
return c:IsReason(REASON_BATTLE) or (rp~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp)
end
function c30100551.desop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
......
......@@ -37,14 +37,17 @@ function c72621670.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(c72621670.tfilter,nil,e)
if g:GetCount()<2 then return end
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE,1-tp,LOCATION_REASON_CONTROL)
local sg=Group.CreateGroup()
local dg=Group.CreateGroup()
local sg=nil
local dg=g
if ct==1 and g:FilterCount(c72621670.tfilter2,nil,e)>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
sg=g:FilterSelect(tp,c72621670.tfilter2,1,1,nil,e)
dg=g:Sub(sg)
else
dg:Sub(sg)
elseif ct>0 then
sg=g:Filter(c72621670.tfilter2,nil,e)
dg:Clear()
else
sg=Group.CreateGroup()
end
local tc=sg:GetFirst()
while tc do
......
......@@ -36,7 +36,6 @@ end
function c84401683.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c84401683.filter(c)
return c:IsFaceup() and c:GetAttack()>0
......
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