mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
*Add an assert.
--HG-- branch : trunk
This commit is contained in:
@@ -14084,7 +14084,7 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type)
|
||||
return false;
|
||||
|
||||
assert(type != CHARM_TYPE_POSSESS || charmer->GetTypeId() == TYPEID_PLAYER);
|
||||
assert(type != CHARM_TYPE_VEHICLE || GetTypeId() == TYPEID_UNIT && IsVehicle());
|
||||
assert((type == CHARM_TYPE_VEHICLE) == IsVehicle());
|
||||
|
||||
sLog.outDebug("SetCharmedBy: charmer %u, charmed %u, type %u.", charmer->GetEntry(), GetEntry(), (uint32)type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user