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

fix(Core/Dungeon): Scourgelord Tyrannus died mid-air. Body got stuck mid-air and can't be looted #2209

Merged
1 commit merged into from
Aug 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class boss_tyrannus : public CreatureScript

void Reset()
{
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
events.Reset();
if (me->HasReactState(REACT_AGGRESSIVE)) // Reset() called by EnterEvadeMode()
{
Expand Down Expand Up @@ -92,7 +93,6 @@ class boss_tyrannus : public CreatureScript
if (param == 1)
{
Position exitPos = {1023.46f, 159.12f, 628.2f, 5.23f};
me->RemoveAllAuras();
if (Creature* c = pInstance->instance->GetCreature(pInstance->GetData64(DATA_RIMEFANG_GUID)))
{
c->RemoveAura(46598);
Expand All @@ -103,6 +103,8 @@ class boss_tyrannus : public CreatureScript
me->GetMotionMaster()->MoveJump(exitPos, 10.0f, 2.0f);

// start real fight
me->RemoveAllAuras();
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
DoZoneInCombat();
me->CastSpell(me, 43979, true);
Talk(SAY_AGGRO);
Expand Down