Commit 2248c689 authored by mallu11's avatar mallu11 Committed by GitHub

fix ビーストアイズ・ペンデュラム・ドラゴン (#1713)

fix: the effect can't be activated if it destroys a trap monster by battle.
parent 228ee5f6
...@@ -9,7 +9,7 @@ function c72378329.initial_effect(c) ...@@ -9,7 +9,7 @@ function c72378329.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c72378329.splimit) e1:SetValue(aux.fuslimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--damage --damage
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -17,7 +17,7 @@ function c72378329.initial_effect(c) ...@@ -17,7 +17,7 @@ function c72378329.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EVENT_BATTLE_DESTROYING) e3:SetCode(EVENT_BATTLE_DESTROYING)
e3:SetCondition(c72378329.damcon) e3:SetCondition(aux.bdcon)
e3:SetTarget(c72378329.damtg) e3:SetTarget(c72378329.damtg)
e3:SetOperation(c72378329.damop) e3:SetOperation(c72378329.damop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -31,14 +31,6 @@ end ...@@ -31,14 +31,6 @@ end
function c72378329.ffilter(c) function c72378329.ffilter(c)
return c:IsRace(RACE_DRAGON) and c:IsFusionAttribute(ATTRIBUTE_DARK) return c:IsRace(RACE_DRAGON) and c:IsFusionAttribute(ATTRIBUTE_DARK)
end end
function c72378329.splimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
function c72378329.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
return c:IsRelateToBattle() and bc:IsType(TYPE_MONSTER)
end
function c72378329.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c72378329.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local dam=e:GetLabel() local dam=e:GetLabel()
......
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