Commit a20197e1 authored by salix5's avatar salix5

Merge pull request #1178 from nekrozar/patch-2

fix Strike of the Monarchs
parents 7aa879d1 43648a8f
...@@ -99,17 +99,21 @@ function c5795980.atcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -99,17 +99,21 @@ function c5795980.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c5795980.attg(e,tp,eg,ep,ev,re,r,rp,chk) function c5795980.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,562)
local rc=Duel.AnnounceAttribute(tp,1,0xffff) local rc=Duel.AnnounceAttribute(tp,1,0xffff)
e:SetLabel(rc) e:SetLabel(rc)
end end
function c5795980.atop(e,tp,eg,ep,ev,re,r,rp) function c5795980.atop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
e1:SetType(EFFECT_TYPE_FIELD) local tc=g:GetFirst()
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) while tc do
e1:SetCode(EFFECT_CHANGE_ATTRIBUTE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetValue(e:GetLabel()) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetCode(EFFECT_CHANGE_ATTRIBUTE)
Duel.RegisterEffect(e1,tp) e1:SetValue(e:GetLabel())
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc=g:GetNext()
end
end 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