edo9300 / ygopro-core

ygopro script engine.
Other
45 stars 31 forks source link

Bait Doll overrides the Reason Effect of the card it activates #73

Open AlphaKretin opened 5 years ago

AlphaKretin commented 5 years ago

Originally opened Jun 3 When Bait Doll targets Treacherous Trap Hole, cards immune to Spell effects are not destroyed, and cards immune to Trap effects are, which is the reverse of the correct interaction. This is because the "reason effect" applying Duel.Destroy is that of Bait Doll, a Spell. There needs to be a way, perhaps a new function, to declare that the effect applying the operation is that of Bait Doll's target, not Bait Doll itself.

See puzzle 36

kevinlul commented 4 years ago

This is puzzle 47 now and the bug is not unique to EDOPro.

AlphaKretin commented 4 years ago

Is it possible that this could be solved on a script level by rescripting Bait Doll to use Duel.Activate?

edo9300 commented 4 years ago

@AlphaKretin Duel.Activate is a function that only works outside chains as it activates that card starting a new chain, with that card being cl1, so it isn't usable on this scenario

kevinlul commented 4 years ago

Fluorohydride/ygopro-core#246