Skip to content

Core/Pet: Unsummon pet only if the player takes a taxi or is airborne on a flying mount#31744

Open
imstuckbro wants to merge 8 commits intoTrinityCore:3.3.5from
imstuckbro:unsummon-pet
Open

Core/Pet: Unsummon pet only if the player takes a taxi or is airborne on a flying mount#31744
imstuckbro wants to merge 8 commits intoTrinityCore:3.3.5from
imstuckbro:unsummon-pet

Conversation

@imstuckbro
Copy link
Copy Markdown

@imstuckbro imstuckbro commented Mar 22, 2026

Changes proposed:

  • More blizzlike behaviour for unsummon pets.

Issues addressed:

Closes # (insert issue tracker number)

Tests performed:

Does it build, tested in-game, etc.

Known issues and TODO list: (add/remove lines as needed)

  • [ Only one edge case remain when player is "swimming" in air after dismount, in this case when he touch the ground the pet summon won't trigger, he need to jump... ]

@imstuckbro imstuckbro marked this pull request as draft March 22, 2026 21:32
@imstuckbro imstuckbro changed the title Core/Pet: Unsummon pet only if player leaves the ground on a flying mount Core/Pet: Unsummon pet only if the player takes a taxi or is airborne on a flying mount Mar 22, 2026
@imstuckbro imstuckbro marked this pull request as ready for review March 22, 2026 23:11
@ccrs
Copy link
Copy Markdown
Contributor

ccrs commented Mar 22, 2026

way too many use cases are changed here, we need to split this into more secure changes, and test them separately

@imstuckbro
Copy link
Copy Markdown
Author

It was built to work as a whole, doubt this can be splitted and have positive results.

@imstuckbro
Copy link
Copy Markdown
Author

I think is ready now, in my tests looks decent comparing to retail.

@offl
Copy link
Copy Markdown
Contributor

offl commented Mar 23, 2026

SetUnitFlag(UNIT_FLAG_STUNNED);

Is this confirmed with sniffs?

@imstuckbro
Copy link
Copy Markdown
Author

haven't really checked, just reused what it already was, looks like in master there's smth like this:

// disable pet controls
player->DisablePetControlsOnMount(REACT_PASSIVE, COMMAND_FOLLOW);

@imstuckbro imstuckbro marked this pull request as draft March 24, 2026 20:55
@imstuckbro imstuckbro marked this pull request as ready for review March 24, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants