Jump to content

Unmount a NPC at dying


Recommended Posts

Posted

I have tried to unmount npc at setDeathState here

@@ -1225,10 +1225,13 @@ void Creature::setDeathState(DeathState s)
        if (canFly() && FallGround())
            return;

        if (!IsStopped())
            StopMoving();
+
+        if (IsMounted())
+            Unmount();
    }
    Unit::setDeathState(s);

    if (s == JUST_DIED)
    {

but after NPC respawning it doesn't visible. Only mount visible.

http://filebeam.com/fade6f01a12057b8d100e7dd75dcc8f3.jpg

There are some kind of visual bug but i haven't any ideas.

PS After grid reload a NPC became visible.

added the bug is actualy only for force respawning.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use