Commit 6216a18d authored by xiaoye's avatar xiaoye

Update c10103001.lua

parent 2bd8864c
...@@ -12,7 +12,7 @@ function cm.checkfilter(c,tp) ...@@ -12,7 +12,7 @@ function cm.checkfilter(c,tp)
return c:IsLocation(LOCATION_TRIGGER) and c:IsLevel(3) and c:IsControler(tp) return c:IsLocation(LOCATION_TRIGGER) and c:IsLevel(3) and c:IsControler(tp)
end end
function cm.checkcon(e,tp,eg,ep,ev,re,r,rp) function cm.checkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.checkfilter,1,nil,tp) and Duel.GetTurnPlayer()==tp and Duel.GetAttackTarget() return Duel.GetAttackTarget() and eg:IsExists(cm.checkfilter,1,nil,Duel.GetAttackTarget():GetControler())
end end
function cm.filter(c) function cm.filter(c)
return vgf.RMonsterFilter(c) and c:IsDefensePos() return vgf.RMonsterFilter(c) and c:IsDefensePos()
...@@ -37,6 +37,6 @@ function cm.con(e) ...@@ -37,6 +37,6 @@ function cm.con(e)
return vgf.VMonsterCondition(e) and Duel.GetTurnPlayer()==tp return vgf.VMonsterCondition(e) and Duel.GetTurnPlayer()==tp
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local e1=Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1) local e1=Duel.RegisterFlagEffect(Duel.GetAttackTarget():GetControler(),m,RESET_PHASE+PHASE_END,0,1)
vgf.EffectReset(e:GetHandler(),e1,EVENT_BATTLED) vgf.EffectReset(e:GetHandler(),e1,EVENT_BATTLED)
end end
\ No newline at end of file
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