mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Merge branch 'dynamicSpawnMerge' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
# Conflicts: # src/server/game/Entities/Creature/Creature.cpp # src/server/game/Entities/Object/Object.cpp # src/server/game/Maps/Map.cpp # src/server/game/Maps/Map.h
This commit is contained in:
@@ -417,9 +417,6 @@ class TC_GAME_API CreatureScript : public UnitScript
|
||||
|
||||
public:
|
||||
|
||||
// Called when the creature tries to spawn. Return false to block spawn and re-evaluate on next tick.
|
||||
virtual bool CanSpawn(ObjectGuid::LowType /*spawnId*/, uint32 /*entry*/, CreatureTemplate const* /*baseTemplate*/, CreatureTemplate const* /*actTemplate*/, CreatureData const* /*cData*/, Map const* /*map*/) const { return true; }
|
||||
|
||||
// Called when a CreatureAI object is needed for the creature.
|
||||
virtual CreatureAI* GetAI(Creature* /*creature*/) const = 0;
|
||||
};
|
||||
@@ -920,7 +917,6 @@ class TC_GAME_API ScriptMgr
|
||||
|
||||
public: /* CreatureScript */
|
||||
|
||||
bool CanSpawn(ObjectGuid::LowType spawnId, uint32 entry, CreatureTemplate const* actTemplate, CreatureData const* cData, Map const* map);
|
||||
CreatureAI* GetCreatureAI(Creature* creature);
|
||||
|
||||
public: /* GameObjectScript */
|
||||
|
||||
Reference in New Issue
Block a user