Commit ec2a30d7 authored by jwyxym's avatar jwyxym Committed by GitHub

Add files via upload

parent c64640ee
......@@ -483,7 +483,7 @@ function VgD.MonsterAttackCost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function VgD.MonsterCannotBeDestoryCondition(e)
local c=e:GetHandler()
return VgF.VMonsterFilter(c)
return VgF.VMonsterFilter(c) or Duel.GetAttacker()==e:GetHandler()
end
function VgD.MonsterCannotBeAttackedCondition(e,c)
return VgF.IsSequence(e:GetHandler(),1,2,3)
......@@ -853,7 +853,7 @@ function VgD.EffectTypeTrigger(c,m,loc,typ,code,op,cost,con,tg,count,property,st
e1:SetCode(code)
e1:SetProperty(property+EFFECT_FLAG_DELAY)
if count and count>0 then e1:SetCountLimit(count) end
if VgF.GetValueType(con)=="function" then e1:SetCndition(con) end
if VgF.GetValueType(con)=="function" then e1:SetCondition(con) end
if VgF.GetValueType(cost)=="function" then e1:SetCost(cost) end
if VgF.GetValueType(tg)=="function" then e1:SetTarget(tg) end
if VgF.GetValueType(op)=="function" then e1:SetOperation(op) end
......
......@@ -3,7 +3,7 @@ local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
--【自】【V】【1回合1次】:你的攻击判定将等级3的卡判出的战斗结束时,通过【费用】[将手牌中的1张卡舍弃],选择你的1张后防者,重置,这个回合中,那个单位的力量+10000。
vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_FIELD,EVENT_DAMAGE_STEP_END,cm.operation,vgf.DisCardCost(1),cm.condition,nil,1,EFFECT_FLAG_DAMAGE_STEP)
vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_FIELD,EVENT_BATTLED,cm.operation,vgf.DisCardCost(1),cm.condition,nil,1,EFFECT_FLAG_DAMAGE_STEP)
if not cm.global_check then
cm.global_check=true
local ge1=Effect.CreateEffect(c)
......@@ -24,11 +24,14 @@ function cm.initial_effect(c)
e1:SetValue(2000)
c:RegisterEffect(e1)
end
function cm.checkfilter(c,tp)
return c:IsLocation(LOCATION_TRIGGER) and vgf.IsLevel(c,3) and c:IsControler(tp) and Duel.GetTurnPlayer()==tp
end
function cm.checkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsLocation,1,nil,LOCATION_TRIGGER) and Duel.GetTurnPlayer()==tp and Duel.GetAttackTarget()
return eg:IsExists(cm.checkfilter,1,nil,tp) and Duel.GetTurnPlayer()==tp and Duel.GetAttackTarget()
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(rp,m,RESET_EVENT+EVENT_DAMAGE_STEP_END,0,1)
Duel.RegisterFlagEffect(tp,m,RESET_EVENT+EVENT_BATTLED,0,1)
end
function cm.filter(c)
return vgf.RMonsterFilter(c) and c:IsDefensePos()
......
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