Skip to content

Core/Spells: Skip shapeshift removal while in Shadow Dance#22013

Closed
DanVS wants to merge 2 commits into
TrinityCore:3.3.5from
DanVS:sub
Closed

Core/Spells: Skip shapeshift removal while in Shadow Dance#22013
DanVS wants to merge 2 commits into
TrinityCore:3.3.5from
DanVS:sub

Conversation

@DanVS

@DanVS DanVS commented Jun 8, 2018

Copy link
Copy Markdown
Contributor

Changes proposed:
Shadow Dance (51713) is a shapeshift effect. It means that applying Stealth or Vanish cancels Shadow Dance prematurely.

PR allows to skip shapeshifts removal while rogue is in Shadow Dance state.

Target branch(es):

  • 3.3.5
  • master

Tests performed: Does build and works in-game.

// remove other shapeshift before applying a new one
target->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT, ObjectGuid::Empty, GetBase());
// skip on rogue shadow dance
if (!target->HasAura(51713))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (target->getClass() != CLASS_ROGUE)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks!

@ccrs

ccrs commented Jun 13, 2018

Copy link
Copy Markdown
Contributor

hack, maybe use a spellscript for shadow dance?

@DanVS

DanVS commented Jun 13, 2018

Copy link
Copy Markdown
Contributor Author

ccrs, which method should I use in such case?

@ccrs

ccrs commented Jun 14, 2018

Copy link
Copy Markdown
Contributor

its complicated, not an expert in spell system, but, since what you want is to prevent a default behaviour in one handler, logic tells to use a spellscript to override it and define what you want to happen. though, again, I dont know without actually digging into it if its even something appropiate for this issue.

@DanVS

DanVS commented Jun 14, 2018

Copy link
Copy Markdown
Contributor Author

Will rework.

@DanVS DanVS closed this Jun 14, 2018
@DanVS DanVS deleted the sub branch August 22, 2018 18:06
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.

4 participants