Commit 9d826338 authored by wind2009's avatar wind2009

Merge branch 'patch-7' into 'master'

Fix H-C マグナム・エクスカリバー

See merge request !190
parents a32bfa94 dd7cf4e8
...@@ -44,12 +44,14 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,12 +44,14 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetBattleTarget()~=nil return e:GetHandler():GetBattleTarget()~=nil
end end
function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end local c=e:GetHandler()
e:GetHandler():RemoveOverlayCard(tp,2,2,REASON_COST) if chk==0 then return c:CheckRemoveOverlayCard(tp,2,REASON_COST) and c:GetFlagEffect(id)==0 end
c:RemoveOverlayCard(tp,2,2,REASON_COST)
c:RegisterFlagEffect(id,RESET_PHASE+PHASE_DAMAGE_CAL,0,1)
end end
function s.atkop(e,tp,eg,ep,ev,re,r,rp) function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToCard() and c:IsFaceup() then if c:IsRelateToChain() and c:IsFaceup() then
local atk=c:GetAttack() local atk=c:GetAttack()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
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