mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-06 04:23:47 +00:00
feat(Core/Instance): Add instance validation for creature scripts (#4596)
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
#ifndef DEF_DEADMINES_H
|
||||
#define DEF_DEADMINES_H
|
||||
|
||||
#include "CreatureAIImpl.h"
|
||||
|
||||
#define DeadminesScriptName "instance_deadmines"
|
||||
|
||||
enum DataTypes
|
||||
{
|
||||
TYPE_RHAHK_ZOR = 0,
|
||||
@@ -18,4 +22,10 @@ enum GameObjects
|
||||
GO_IRON_CLAD_DOOR = 16397
|
||||
};
|
||||
|
||||
template <class AI, class T>
|
||||
inline AI* GetDeadminesAI(T* obj)
|
||||
{
|
||||
return GetInstanceAI<AI>(obj, DeadminesScriptName);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user