Commit 1440ab57 authored by nanahira's avatar nanahira

gitsummontype

parent 8a8a6708
......@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,m)
e1:SetCondition(function(e)
return (e:GetHandler():GetSummonType() & 0x24)~=0x24
return not e:GetHandler():IsSummonType(0x24)
end)
e1:SetCost(Senya.SelfReleaseCost)
e1:SetTarget(cm.target)
......
......@@ -38,7 +38,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.rgcon(e)
return (e:GetHandler():GetSummonType() & 0x534)==0x534
return e:GetHandler():IsSummonType(0x534)
end
function cm.spcon(e,c)
if c==nil then return true end
......@@ -51,7 +51,7 @@ end
function cm.rdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return ep~=tp and Duel.GetAttackTarget()==nil
and c:GetEffectCount(EFFECT_DIRECT_ATTACK)<2 and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 and (e:GetHandler():GetSummonType() & 0x534)==0x534
and c:GetEffectCount(EFFECT_DIRECT_ATTACK)<2 and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 and e:GetHandler():IsSummonType(0x534)
end
function cm.rdop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(ep,ev/2)
......
......@@ -1315,7 +1315,7 @@ function cm.NanahiraTrap(c,...)
e1:SetCost(cm.SelfReleaseCost)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) then return false end
return (e:GetHandler():GetSummonType() & 0x553)==0x553
return e:GetHandler():IsSummonType(0x553)
end)
local op=te:GetOperation()
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -24,8 +24,7 @@ function cm.initial_effect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return (c:GetSummonType() & 0x829)==0x829
return e:GetHandler():IsSummonType(0x829)
end)
e0:SetOperation(cm.skipop)
c:RegisterEffect(e0)
......
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