Commit eb8b9fc5 authored by wind2009's avatar wind2009

fix effect target

parent 9f690e9c
...@@ -478,13 +478,13 @@ function Auxiliary.Load_Chicken_Game_Rule() ...@@ -478,13 +478,13 @@ function Auxiliary.Load_Chicken_Game_Rule()
--local e1=Effect.GlobalEffect() --local e1=Effect.GlobalEffect()
local e1=Effect.CreateEffect(fc) local e1=Effect.CreateEffect(fc)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetTargetRange(1,1) e1:SetTargetRange(1,1)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetOperation(Auxiliary.Chicken_Game_Operation) e1:SetOperation(Auxiliary.Chicken_Game_Operation)
--Duel.RegisterEffect(e1,0) Duel.RegisterEffect(e1,0)
fc:RegisterEffect(e1,true) --fc:RegisterEffect(e1,true)
end end
function Auxiliary.Chicken_Game_Operation(e,tp,eg,ep,ev,re,r,rp) function Auxiliary.Chicken_Game_Operation(e,tp,eg,ep,ev,re,r,rp)
local tp=Duel.GetTurnPlayer() local tp=Duel.GetTurnPlayer()
......
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