* Added sanity check for > 100 waypoints since levels > 100 aren't supported
* Author Kaelima --HG-- branch : trunk
This commit is contained in:
@@ -3058,6 +3058,9 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
|
|||||||
{
|
{
|
||||||
wpCreature->SetDisplayId(target->GetDisplayId());
|
wpCreature->SetDisplayId(target->GetDisplayId());
|
||||||
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
|
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
|
||||||
|
if(point > 100)
|
||||||
|
wpCreature->SetLevel(100);
|
||||||
|
else
|
||||||
wpCreature->SetLevel(point);
|
wpCreature->SetLevel(point);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user