mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
* Added sanity check for > 100 waypoints since levels > 100 aren't supported
* Author Kaelima --HG-- branch : trunk
This commit is contained in:
@@ -3058,7 +3058,10 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
|
||||
{
|
||||
wpCreature->SetDisplayId(target->GetDisplayId());
|
||||
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
|
||||
wpCreature->SetLevel(point);
|
||||
if(point > 100)
|
||||
wpCreature->SetLevel(100);
|
||||
else
|
||||
wpCreature->SetLevel(point);
|
||||
}
|
||||
}
|
||||
while( result->NextRow() );
|
||||
|
||||
Reference in New Issue
Block a user