mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Eye of Eternity: Fix not being able to press release button on death during phase III
This commit is contained in:
@@ -19,13 +19,10 @@
|
||||
SDName: Boss Malygos
|
||||
Script Data End */
|
||||
|
||||
/* Main problems needing most attention:
|
||||
1) Add support for using Exit Portal while on drake which means to
|
||||
find seat flag that allows casting on passenger or something that
|
||||
will prevent valid target filtering.
|
||||
2) Find what cause client not sending release now availability
|
||||
if player dies after far falling. For now player needs to logout to get body after
|
||||
if release button remain unavailable after box popping.*/
|
||||
/* Main problem needing most attention:
|
||||
Add support for using Exit Portal while on drake which means to
|
||||
find seat flag that allows casting on passenger or something that
|
||||
will prevent valid target filtering. */
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
|
||||
@@ -152,6 +152,20 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void OnUnitDeath(Unit* unit)
|
||||
{
|
||||
if (unit->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
// For some reason player continues sometimes to be moving after death on this map,
|
||||
// perhaps only client side issue am not entirtly sure.
|
||||
// This fix not being able to press release button.
|
||||
// Variation of this with some check needs to be implemented somewhere within core code.
|
||||
// It'll stay here until someone find where and why the leak happens.
|
||||
if (Player* dyingPlayer = unit->ToPlayer())
|
||||
dyingPlayer->StopMoving();
|
||||
}
|
||||
|
||||
void ProcessEvent(WorldObject* /*obj*/, uint32 eventId)
|
||||
{
|
||||
if (eventId == EVENT_FOCUSING_IRIS)
|
||||
|
||||
Reference in New Issue
Block a user