Commit a507d3dd authored by Steeldarkeagel's avatar Steeldarkeagel

Update c7165085.lua

Semi Fix: This fix enables Bait Doll to activate the a Trap which has only just been set on your opponents side of the filed if they control Temple of the Kings. More work is needed to fix it so it will also work if the turn player uses it on their own just set Trap while they Control Temple of the Kings and it should only work once per turn like this due to the new Temple of the Kings errata.
parent c28710cc
...@@ -40,8 +40,8 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,8 +40,8 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp)
local cost=te:GetCost() local cost=te:GetCost()
local target=te:GetTarget() local target=te:GetTarget()
local operation=te:GetOperation() local operation=te:GetOperation()
if te:GetCode()==EVENT_FREE_CHAIN and not tc:IsStatus(STATUS_SET_TURN) if te:GetCode()==EVENT_FREE_CHAIN and not (tc:IsStatus(STATUS_SET_TURN) and Duel.IsExistingMatchingCard(Card.IsCode,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil,29762407))
and (not condition or condition(te,tep,eg,ep,ev,re,r,rp)) and (not condition or condition(te,tep,eg,ep,ev,re,r,rp))
and (not cost or cost(te,tep,eg,ep,ev,re,r,rp,0)) and (not cost or cost(te,tep,eg,ep,ev,re,r,rp,0))
and (not target or target(te,tep,eg,ep,ev,re,r,rp,0)) then and (not target or target(te,tep,eg,ep,ev,re,r,rp,0)) then
Duel.ClearTargetCard() Duel.ClearTargetCard()
......
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