* Added sanity check for > 100 waypoints since levels > 100 aren't supported

* Author Kaelima

--HG--
branch : trunk
This commit is contained in:
Brian
2010-01-14 15:39:11 -07:00
parent 1fcafbc938
commit 5fd047cd90
+3
View File
@@ -3058,6 +3058,9 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
{
wpCreature->SetDisplayId(target->GetDisplayId());
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
if(point > 100)
wpCreature->SetLevel(100);
else
wpCreature->SetLevel(point);
}
}