mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11385] Add support for static vehicle spawns
Signed-off-by: zergtmn <zerg@myisp.com>
This commit is contained in:
parent
75e1e7c3a3
commit
2835aa5f20
32 changed files with 115 additions and 331 deletions
|
|
@ -26,7 +26,6 @@
|
|||
#include "TemporarySummon.h"
|
||||
#include "Totem.h"
|
||||
#include "Pet.h"
|
||||
#include "Vehicle.h"
|
||||
#include "GameObject.h"
|
||||
#include "Opcodes.h"
|
||||
#include "Chat.h"
|
||||
|
|
@ -1563,8 +1562,7 @@ bool ChatHandler::HandleNpcAddCommand(char* args)
|
|||
return false;
|
||||
|
||||
CreatureInfo const *cinfo = ObjectMgr::GetCreatureTemplate(id);
|
||||
//FIXME: need vehicle support like GenerateStaticCreatureLowGuid when its will allowed static spawns
|
||||
if (!cinfo || cinfo->GetHighGuid() != HIGHGUID_UNIT)
|
||||
if (!cinfo)
|
||||
{
|
||||
PSendSysMessage(LANG_COMMAND_INVALIDCREATUREID, id);
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -1844,9 +1842,6 @@ bool ChatHandler::HandleNpcDeleteCommand(char* args)
|
|||
case CREATURE_SUBTYPE_TEMPORARY_SUMMON:
|
||||
((TemporarySummon*)unit)->UnSummon();
|
||||
break;
|
||||
case CREATURE_SUBTYPE_VEHICLE:
|
||||
((Vehicle*)unit)->Dismiss();
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue