Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Blue-Eyes Jet Dragon can use effect if it was overlay in one XYZ monster and the XYZ monster is destroyed by battle #2393

Open
mercury233 opened this issue Nov 6, 2021 · 0 comments
Labels

Comments

@mercury233
Copy link
Collaborator

mercury233 commented Nov 6, 2021

When an XYZ monster is destroyed, its XYZ materials are sent to grave with the monster at same time, so it shouldn't meet the condition of Blue-Eyes Jet Dragon :

You can Special Summon this card from your GY (if it was there when the card was destroyed)

Now in YGOPro, if the XYZ monster is destroyed by effect, EVENT_DESTROYED will be triggered in send_to of the XYZ monster, before send_to(&overlays, ... is called, so it won't cause any problem.
But if the XYZ monster is destroyed by battle, EVENT_DESTROYED will be triggered after the XYZ monster is sent to grave fully (the destroyed event is skipped in send_to), so Blue-Eyes Jet Dragon will receive the event in grave.

I think we can add Card.GetPreviousOverlayGroupOnField to check this (not eg:IsContains(c) and not eg:IsContains(GetPreviousOverlayGroupOnField contains c))

Debug.SetAIName("AI")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_PSEUDO_SHUFFLE+DUEL_SIMPLE_AI,5)
Debug.SetPlayerInfo(0,8000,0,0)
Debug.SetPlayerInfo(1,8000,0,0)

Debug.AddCard(89631139,0,0,LOCATION_GRAVE,0,POS_FACEUP)

Debug.AddCard(46986414,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)

Debug.AddCard(88120966,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(30576089,0,0,LOCATION_MZONE,2,POS_FACEDOWN)

Debug.AddCard(53129443,0,0,LOCATION_HAND,0,POS_FACEUP)

Debug.ReloadFieldEnd()
aux.BeginPuzzle()
@salix5 salix5 added the bug label Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants