Commit 72f46f23 authored by wind2009's avatar wind2009

Fix Beast of Talwar - The Sword Summit

parent 6fb65cf0
...@@ -18,15 +18,15 @@ function s.initial_effect(c) ...@@ -18,15 +18,15 @@ function s.initial_effect(c)
e2:SetValue(s.indct) e2:SetValue(s.indct)
--cannot target --cannot target
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e2=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e3:SetTargetRange(0x34,0x34)
e2:SetTarget(s.tglimit) e3:SetTarget(s.tglimit)
e2:SetValue(s.tgoval) e3:SetValue(s.tgoval)
c:RegisterEffect(e2) c:RegisterEffect(e3)
end end
function s.hspcon(e,c) function s.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
...@@ -39,7 +39,7 @@ function s.indct(e,re,r,rp) ...@@ -39,7 +39,7 @@ function s.indct(e,re,r,rp)
else return 0 end else return 0 end
end end
function s.tglimit(e,c) function s.tglimit(e,c)
return c~=e:GetHandler() return c~=e:GetHandler() and c:IsType(TYPE_MONSTER)
end end
function s.tgoval(e,re,rp) function s.tgoval(e,re,rp)
return re:IsActiveType(TYPE_SPELL) and re:GetHandler():IsType(TYPE_EQUIP) return re:IsActiveType(TYPE_SPELL) and re:GetHandler():IsType(TYPE_EQUIP)
......
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