Commit 67398114 authored by argon.sun's avatar argon.sun

fix

parent 87c1b546
......@@ -17,7 +17,7 @@ function c66818682.initial_effect(c)
e2:SetDescription(aux.Stringid(66818682,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
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_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED)
e2:SetCondition(c66818682.spcon)
e2:SetTarget(c66818682.sptg)
......
......@@ -20,24 +20,24 @@ function c80163754.filter(c,atk)
end
function c80163754.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local g=Duel.GetMatchingGroup(c80163754.filter,tp,0,LOCATION_MZONE,nil)
local g=Duel.GetMatchingGroup(c80163754.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetCount()==0 then return false end
local mg=g:GetMinGroup(Card.GetDefence)
local mg,mdef=g:GetMinGroup(Card.GetDefence)
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c80163754.cfilter,1,nil,g:GetFirst():GetDefence())
return Duel.CheckReleaseGroup(tp,c80163754.cfilter,1,nil,mdef)
end
local g=Duel.GetMatchingGroup(c80163754.filter,tp,0,LOCATION_MZONE,nil)
local mg=g:GetMinGroup(Card.GetDefence)
local rg=Duel.SelectReleaseGroup(tp,c80163754.cfilter,1,1,nil,g:GetFirst():GetDefence())
local g=Duel.GetMatchingGroup(c80163754.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local mg,mdef=g:GetMinGroup(Card.GetDefence)
local rg=Duel.SelectReleaseGroup(tp,c80163754.cfilter,1,1,nil,mdef)
e:SetLabel(rg:GetFirst():GetAttack())
Duel.Release(rg,REASON_COST)
end
function c80163754.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetLabel()==0 end
local dg=Duel.GetMatchingGroup(c80163754.filter,tp,0,LOCATION_MZONE,nil,e:GetLabel())
local dg=Duel.GetMatchingGroup(c80163754.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetLabel())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,dg,dg:GetCount(),0,0)
end
function c80163754.activate(e,tp,eg,ep,ev,re,r,rp)
local dg=Duel.GetMatchingGroup(c80163754.filter,tp,0,LOCATION_MZONE,nil,e:GetLabel())
local dg=Duel.GetMatchingGroup(c80163754.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetLabel())
Duel.Destroy(dg,REASON_EFFECT)
end
......@@ -3,9 +3,9 @@
antialias = 2
nickname = Player
gamename = Game
lastdeck = test
lastdeck = ArriveGB
textfont = c:/windows/fonts/simsun.ttc 14
numfont = c:/windows/fonts/arialbd.ttf
serverport = 7911
lastip = 192.168.3.235
lastip = 10.110.5.252
lastport = 7911
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