Adds /pw i, to toggle instance pets - #30
Conversation
This only matters if /pw a is enabled, otherwise it is ignored. /pw i or /pw instance toggles true/false. If disabled, then when entering any instance pet will be desummoned. Upon leaving an instance the behavior returns to existing options. Defaults to true so it's backwards compatible.
|
Thanks for the careful PR. At the moment I cannot merge any PR, because I still have (the long overdue) v3.0 in the queue, and this comes with pretty heavy changes. I’m sorry that I did not sync my develop branch to GitHub, so you couldn’t know. (Yes, very bad practice. But some time ago I had glitches with the wrong branch auto-pushed to CF, or none pushed at all despite the presence of a tag, so I decided to keep any CF-hooked repo clean of non-master branches. I’ll have to re-check if the issue still exists.) Besides that, a few considerations: What is the point of dismissing the pet when entering an instance? An already existing pet does not negatively affect gameplay1. What can interfere, is the summoning of a pet, because of the GCD. But this is already prevented automatically for certain instances (the Independent of this, checking the user setting at a PLAYER_ENTERING_WORLD event will not work as intended:
So, for the assumed desired behavior (all non-world instances), we would have to register PLAYER_MAP_CHANGED, which, despite the misleading name, is the only event that truly fires on any instance change (see my old PR for TPTP here). To exclude Continent changes, we would have to do an IsInInstance or GetInstanceInfo check afterwards. (PLAYER_MAP_CHANGED fires very early, so this needs a 2s timer in order to get the correct instance info.) What I would be more inclined to implement is a We could also include Delves/scenarios, but this also requires registering PLAYER_MAP_CHANGED (in order to detect when we leave the Delve). And this leads me to back to a plan I already had (and forgot): It would be more elegant (and efficient) to change the entire forbidden_instance mechanic alltogether: run the instance check after every PLAYER_MAP_CHANGED, and not with every unthrottled This would also pave the ground for a significantly more harmonic implementation of a But, as said, please let me first finish v3.0 (ETA for CF: a bit after the 12.0.7 release, if nothing needs to be changed). Footnotes
|
|
ah I see, so my major thing was I don't want my pet summoned in arena and bgs, it's just another thing in my vision I don't want to see ina competitive environment, I'll wait for 3.0 I suppose and revisit |
OK, the possible visual distraction caused by the presence of a pet is indeed an argument. I get your point now. So, the roadmap now is:
Competitive instances: Besides the already implemented ones (M+ Key, Arena), I'll add Mythic raids and Battlegrounds. Or maybe all raids. So, without |
|
I just released v3.0, finally. But no worries, you don’t need to redo your PR. I’ll implement the instance changes as outlined in the roadmap above (and give you credits). |
Thanks! dont need credit thats ok |
This only matters if
/pw ais enabled, otherwise it is ignored because obviously we won't auto summon. I have called out under/pw hargument listing./pw ior/pw instancetoggles true/false.If disabled, then when entering any instance pet will be desummoned and auto summoning in instance will be disabled.
Upon leaving an instance the behavior returns to existing pattern.
Default to true so its backwards compatible to users
I tested it by having auto summon enabled and disabling instance summons, then queued follower dungeon and entered, pet was dismissed and didn't see auto summon occur, so I think its good.