Commit 7168f086 authored by salix5's avatar salix5

Merge pull request #1053 from DailyShana/patch-3

fix
parents d42d04f0 07120d4d
...@@ -57,4 +57,12 @@ function c34267821.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,4 +57,12 @@ function c34267821.rmop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_PHASE+RESET_END) e1:SetReset(RESET_PHASE+RESET_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
--30459350 chk
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(30459350)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,1)
e2:SetReset(RESET_PHASE+RESET_END)
Duel.RegisterEffect(e2,tp)
end end
...@@ -59,6 +59,7 @@ function c58820923.rmfilter(c) ...@@ -59,6 +59,7 @@ function c58820923.rmfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end end
function c58820923.rmop(e,tp,eg,ep,ev,re,r,rp) function c58820923.rmop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(1-tp,30459350) then return end
local g=Duel.GetMatchingGroup(c58820923.rmfilter,1-tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c58820923.rmfilter,1-tp,LOCATION_DECK,0,nil)
if g:GetCount()>2 then if g:GetCount()>2 then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE)
...@@ -78,7 +79,7 @@ function c58820923.atktg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,7 +79,7 @@ function c58820923.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c58820923.atkop(e,tp,eg,ep,ev,re,r,rp) function c58820923.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......
...@@ -74,7 +74,7 @@ function c68396121.atktg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -74,7 +74,7 @@ function c68396121.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c68396121.atkop(e,tp,eg,ep,ev,re,r,rp) function c68396121.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EXTRA_ATTACK) e1:SetCode(EFFECT_EXTRA_ATTACK)
......
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