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