Commit 2ff09262 authored by salix5's avatar salix5

Merge pull request #243 from nekrozar/patch-2

fix Raidraptor - Ultimate Falcon
parents 1ad03e33 9314e970
...@@ -38,17 +38,13 @@ function c86221741.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,17 +38,13 @@ function c86221741.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c86221741.operation(e,tp,eg,ep,ev,re,r,rp) function c86221741.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local e1=Effect.CreateEffect(c)
local gc=g:GetFirst() e1:SetType(EFFECT_TYPE_FIELD)
while gc do e1:SetCode(EFFECT_UPDATE_ATTACK)
local e1=Effect.CreateEffect(e:GetHandler()) e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetValue(-1000)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetValue(-1000) Duel.RegisterEffect(e1,tp)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
gc:RegisterEffect(e1)
gc=g:GetNext()
end
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
...@@ -59,7 +55,7 @@ function c86221741.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +55,7 @@ function c86221741.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c86221741.aclimit(e,re,tp) function c86221741.aclimit(e,re,tp)
return (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)) and not re:GetHandler():IsImmuneToEffect(e) return not re:GetHandler():IsImmuneToEffect(e)
end end
function c86221741.atkcon(e,tp,eg,ep,ev,re,r,rp) function c86221741.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0xba) return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0xba)
......
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