*Add some error log for debug.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-27 18:56:47 -05:00
parent bd5a53a774
commit d87133961a
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -16850,7 +16850,8 @@ void Player::StopCastingCharm()
if(GetCharmGUID()) if(GetCharmGUID())
{ {
sLog.outCrash("Player %s is not able to uncharm unit (Entry: %u, Type: %u)", GetName(), charm->GetEntry(), charm->GetTypeId()); sLog.outCrash("Player %s (GUID: " UI64FMTD " is not able to uncharm unit (GUID: " UI64FMTD " Entry: %u, Type: %u)", GetName(), GetGUID(), GetCharmGUID(), charm->GetEntry(), charm->GetTypeId());
sLog.outCrash("Charmed unit has charmer guid " UI64FMTD, charm->GetCharmerGUID());
assert(false); assert(false);
} }
} }
+5
View File
@@ -14107,7 +14107,12 @@ void Unit::RemoveCharmedBy(Unit *charmer)
if(!charmer) if(!charmer)
charmer = GetCharmer(); charmer = GetCharmer();
else if(charmer != GetCharmer()) // one aura overrides another? else if(charmer != GetCharmer()) // one aura overrides another?
{
sLog.outCrash("Unit::RemoveCharmedBy: this: " UI64FMTD " true charmer: " UI64FMTD " false charmer: " UI64FMTD,
GetGUID(), GetCharmerGUID(), charmer->GetGUID());
assert(false);
return; return;
}
CharmType type; CharmType type;
if(hasUnitState(UNIT_STAT_POSSESSED)) if(hasUnitState(UNIT_STAT_POSSESSED))