Commit 259b0524 authored by salix5's avatar salix5

Merge pull request #1474 from Steeldarkeagel/patch-47

Update c91078716.lua
parents 99e40cab 2d44a2e4
...@@ -27,9 +27,12 @@ end ...@@ -27,9 +27,12 @@ end
function c91078716.condition1(e,tp,eg,ep,ev,re,r,rp) function c91078716.condition1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0 return Duel.GetCurrentChain()==0
end end
function c91078716.filter(c)
return c:IsReleasable() and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end
function c91078716.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c91078716.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsRace,1,nil,RACE_PLANT) end if chk==0 then return Duel.CheckReleaseGroup(tp,c91078716.filter,1,nil,RACE_PLANT) end
local g=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,nil,RACE_PLANT) local g=Duel.SelectReleaseGroup(tp,c91078716.filter,1,1,nil,RACE_PLANT)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c91078716.target1(e,tp,eg,ep,ev,re,r,rp,chk) function c91078716.target1(e,tp,eg,ep,ev,re,r,rp,chk)
......
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