Commit 3a8f1c66 authored by Tachibana's avatar Tachibana

得得得得得

parent 8da46bfd
......@@ -30,7 +30,7 @@ function c71400018.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0)
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
Duel.SetChainLimit(c71400018.limit(g1))
Duel.SetChainLimit(c71400018.limit)
end
end
function c71400018.operation(e,tp,eg,ep,ev,re,r,rp)
......@@ -47,8 +47,7 @@ function c71400018.operation(e,tp,eg,ep,ev,re,r,rp)
end
--]]
end
function c71400018.limit(g)
return function (e,lp,tp)
return not g:IsContains(e:GetHandler())
end
function c71400018.limit(e,ep,tp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
return not g:IsContains(e:GetHandler())
end
\ No newline at end of file
......@@ -95,10 +95,12 @@ end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local tg=g:GetMaxGroup(Card.GetAttack)
if #tg>0 then
local atk=tg:GetFirst():GetBaseAttack()
else local atk=0 end
if #g>0 then
local tg=g:GetMaxGroup(Card.GetAttack)
if #tg>0 then
local atk=tg:GetFirst():GetBaseAttack()
else local atk=0 end
end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,tg,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,atk/2)
end
......
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp
return ep~=tp and Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0
end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 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