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

This commit is contained in:
ArashGorge
2019-08-29 01:15:48 +04:30
committed by Stoabrogga
parent 0ee3f8373a
commit 9880b20b32

View File

@@ -62,6 +62,7 @@ public:
void Reset()
{
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
events.Reset();
if (me->HasReactState(REACT_AGGRESSIVE)) // Reset() called by EnterEvadeMode()
{
@@ -92,7 +93,6 @@ public:
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);
@@ -103,6 +103,8 @@ public:
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);