Jump to content

[BugFix] Mirror Image

Guest MacWarriors

Recommended Posts

What bug does the patch fix? What features does the patch add?

Mirror Image Spell ( 60352 ) doesn't reset player's race and class anymore when used with .aura command.

For which repository revision was the patch created?


Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.


Who has been writing this patch? Please include either forum user names or email addresses.



When using Mirror Image on an other player, this one will disapear from characters list because of a wrong race and class in DB.

This is because this spell musn't be casted on a player, so I just added a verification.



diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 92c5762..00b759a 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -8235,6 +8235,9 @@ void Aura::HandleAuraMirrorImage(bool apply, bool Real)
    // Target of aura should always be creature (ref Spell::CheckCast)
    Creature* pCreature = (Creature*)GetTarget();

+	if (pCreature->GetTypeId()==TYPEID_PLAYER)
+		return;
    if (apply)
        // Caster can be player or creature, the unit who pCreature will become an clone of.

Best regards,


Link to comment
Share on other sites


  • 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