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

Add files via upload

parent 68334a44
...@@ -483,7 +483,7 @@ function VgD.MonsterAttackCost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -483,7 +483,7 @@ function VgD.MonsterAttackCost(e,tp,eg,ep,ev,re,r,rp,chk)
c:RegisterFlagEffect(CountTriggerFlag,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL,0,1) c:RegisterFlagEffect(CountTriggerFlag,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL,0,1)
end end
function VgD.MonsterCannotBeDestoryCondition(e,c) function VgD.MonsterCannotBeDestoryCondition(e,c)
return VgF.VMonsterFilter(e:GetHandler()) or Duel.GetTurnPlayer()==e:GetHandlerPlayer() return VgF.VMonsterFilter(e:GetHandler()) or Duel.GetAttacker()==e:GetHandler()
end end
function VgD.MonsterCannotBeAttackedCondition(e,c) function VgD.MonsterCannotBeAttackedCondition(e,c)
return VgF.IsSequence(e:GetHandler(),1,2,3) return VgF.IsSequence(e:GetHandler(),1,2,3)
......
...@@ -25,7 +25,7 @@ function cm.initial_effect(c) ...@@ -25,7 +25,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
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(Card.IsLocation,1,nil,LOCATION_TRIGGER) and Duel.GetTurnPlayer()==tp return eg:IsExists(Card.IsLocation,1,nil,LOCATION_TRIGGER) and Duel.GetTurnPlayer()==tp and Duel.GetAttackTarget()
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) 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(rp,m,RESET_EVENT+EVENT_DAMAGE_STEP_END,0,1)
...@@ -39,9 +39,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,9 +39,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
if Duel.ChangePosition(g,POS_ATTACK)>0 then Duel.ChangePosition(g,POS_FACEUP_ATTACK)
vgF.AtkUp(c,g,10000,nil) vgf.AtkUp(c,g,10000,nil)
end
end end
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
......
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