Commit d77cab08 authored by DailyShana's avatar DailyShana

Merge pull request #294 from nekrozar/patch-1

fix Cosmic Fortress Gol'gar
parents 294b6be6 dff22523
...@@ -40,10 +40,10 @@ end ...@@ -40,10 +40,10 @@ end
function c68319538.operation(e,tp,eg,ep,ev,re,r,rp) function c68319538.operation(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local rg=tg:Filter(Card.IsRelateToEffect,nil,e) local rg=tg:Filter(Card.IsRelateToEffect,nil,e)
local ct=Duel.SendtoHand(rg,nil,REASON_EFFECT) Duel.SendtoHand(rg,nil,REASON_EFFECT)
if ct==0 then return end local ct=rg:FilterCount(Card.IsLocation,nil,LOCATION_HAND)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetCount()==0 then return end if ct==0 or g:GetCount()==0 then return end
for i=1,ct do for i=1,ct do
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(68319538,2)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(68319538,2))
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
......
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