Commit c837c29c authored by mercury233's avatar mercury233 Committed by GitHub

fix gain effect owner (#1865)

parent 1719f4b8
......@@ -52,7 +52,7 @@ function c31772684.mtop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsSetCard,nil,0x106)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(31772684,1))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_QUICK_O)
......
......@@ -30,7 +30,7 @@ function c32013448.mtop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsSetCard,nil,0x10cf)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(32013448,0))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_IGNITION)
......@@ -41,7 +41,7 @@ function c32013448.mtop(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(c32013448.rmop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(c)
local e2=Effect.CreateEffect(rc)
e2:SetDescription(aux.Stringid(32013448,1))
e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_IGNITION)
......
......@@ -31,7 +31,7 @@ end
function c4647954.efop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=c:GetReasonCard()
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(4647954,1))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
......
......@@ -56,7 +56,7 @@ function c49394035.mtop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsSetCard,nil,0x106)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
......@@ -59,7 +59,7 @@ function c49477180.mtop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsSetCard,nil,0x106)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(49477180,1))
e1:SetCategory(CATEGORY_HANDES+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
......
......@@ -30,7 +30,7 @@ function c6628343.mtop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsSetCard,nil,0x10cf)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(6628343,0))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_IGNITION)
......@@ -41,7 +41,7 @@ function c6628343.mtop(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(c6628343.rmop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(c)
local e2=Effect.CreateEffect(rc)
e2:SetDescription(aux.Stringid(6628343,1))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_BATTLE_DESTROYING)
......
......@@ -54,7 +54,7 @@ function c67267333.mtop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsSetCard,nil,0x106)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(67267333,1))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_QUICK_O)
......
......@@ -32,7 +32,7 @@ end
function c68258355.efop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=c:GetReasonCard()
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(68258355,1))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
......
......@@ -59,7 +59,7 @@ function c70491682.mtop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsSetCard,nil,0x106)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(rc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_BATTLE_DESTROY_REDIRECT)
e1:SetValue(LOCATION_REMOVED)
......
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