Commit 3461878b authored by salix5's avatar salix5

Merge pull request #1302 from nekrozar/patch-3

fix Performapal Lacoodown
parents 7b0743ce 255d38ff
...@@ -45,7 +45,6 @@ function c44481227.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,6 @@ function c44481227.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
if not tc:IsRelateToEffect(e) then return end
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local gc=g:GetFirst() local gc=g:GetFirst()
while gc do while gc do
...@@ -57,11 +56,13 @@ function c44481227.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,11 +56,13 @@ function c44481227.operation(e,tp,eg,ep,ev,re,r,rp)
gc:RegisterEffect(e1) gc:RegisterEffect(e1)
gc=g:GetNext() gc=g:GetNext()
end end
local e2=Effect.CreateEffect(e:GetHandler()) if tc:IsRelateToEffect(e) then
e2:SetType(EFFECT_TYPE_SINGLE) local e2=Effect.CreateEffect(e:GetHandler())
e2:SetCode(EFFECT_PIERCE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END) e2:SetCode(EFFECT_PIERCE)
tc:RegisterEffect(e2) e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END)
tc:RegisterEffect(e2)
end
end end
function c44481227.atkcon(e,tp,eg,ep,ev,re,r,rp) function c44481227.atkcon(e,tp,eg,ep,ev,re,r,rp)
local rc=e:GetHandler():GetReasonCard() local rc=e:GetHandler():GetReasonCard()
......
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