-
Notifications
You must be signed in to change notification settings - Fork 785
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
Improve trigger auto ordering and aura attachment (Lynde QOL fixes) #10648
Conversation
This is more of a general change, but it has something that has been annoying me while playing Lynde. Now, if a triggered ability has a target on trigger (such as a related object, not a true target, since the player hasn't chosen targets yet), it considers this target when checking if two abilities are distinct. For example: Even though these two abilities have the same text, it still asks me to order them since they have different related objects. Unfortunately, there isn't a great way to check this for keys, so I would encourage any triggered abilities to make use of target pointers rather than keys (this is better for players anyway, since they can see target pointers but not keys). |
it checks if it's already attached before asking player to attach
Also added a fix for copy effects when used with Lynde. Previously, if a copy card like [[Estrid's Invocation]] came back as a copy of a curse with Lynde's ability, it would ask which player to attach to (even though it should be attached to the controller of Lynde). |
Estrid's Invocation - (Gatherer) (Scryfall) (EDHREC)
|
[[Lynde]] |
Lynde, Cheerful Tormentor - (Gatherer) (Scryfall) (EDHREC)
|
the fix to CopyPermanentEffect looks good to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with the existing trigger order logic at all, but your intent makes sense and I don't see any issues with the added code
@JayDi85 let me know if you see anything wrong here, otherwise I'll go ahead and merge this one (edit: decided to hold off due to the other things happening with trigger order) |
Curious if the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aura attach choice looks fine.
Auto order of triggers looks fine but need some comments and null check.
Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java
Show resolved
Hide resolved
Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java
Show resolved
Hide resolved
Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java
Show resolved
Hide resolved
Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java
Show resolved
Hide resolved
Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java
Outdated
Show resolved
Hide resolved
BTW for the future: if auto order disabled too much due diff targets then it can be improved with same style settings as auto choices do (disable, auto-order on same ability, auto-order on same ability and targets). |
There are 3 steps:
|
Or maybe it can be disabled on an ability-to-ability basis in the same menu as "always put this trigger first"? |
It's UX problem -- auto-order enabled for all abilities by default, so you can't catch choose dialog to disable it on first time (e.g. you will skip choose triggers all the time until another diff trigger pop up and allows to disable it by right click menu). |
Maybe it can be opposite? Default to no auto-trigger, and let people choose what they want to auto-trigger. |
Some QOL fixes for a card I've been playing a lot. The biggest thing is that ordering her triggers on the end step is a nightmare, because those triggers don't reference which card is coming back, and are considered "identical" for purposes of auto-trigger ordering.
I think the auto-trigger ordering system needs a little bit of an overhaul, because there are plenty of effects which differ by something other than their rules text... such as referenced objects. Right now my idea is only to look at targets, but it may make sense to look at keys/values?
Note to myself: Fix issue with clone effects like Estrid's Invocation coming back with Lynde's ability.