Nopch fix2

This commit is contained in:
Shauren
2019-08-18 11:16:43 +02:00
parent 006cf15f09
commit 3b004b2cfd
3 changed files with 15 additions and 11 deletions

View File

@@ -22,6 +22,7 @@
#include "DBCEnums.h"
#include "QuaternionData.h"
#include "SharedDefines.h"
#include "WorldPacket.h"
#include <string>
#include <vector>

View File

@@ -15,16 +15,19 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "LFGMgr.h"
#include "Player.h"
#include "Group.h"
#include "SpellScript.h"
#include "SpellAuraEffects.h"
#include "shadowfang_keep.h"
#include "GridNotifiersImpl.h"
#include "Group.h"
#include "InstanceScript.h"
#include "LFGMgr.h"
#include "Map.h"
#include "MotionMaster.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "ScriptMgr.h"
#include "SpellAuraEffects.h"
#include "SpellScript.h"
enum ApothecarySpells
{

View File

@@ -34,10 +34,10 @@ enum SKDataTypes
DATA_APOTHECARY_HUMMEL = 6
};
template<typename AI>
inline AI* GetShadowfangKeepAI(Creature* creature)
template<typename AI, typename T>
inline AI* GetShadowfangKeepAI(T* obj)
{
return GetInstanceAI<AI>(creature, SFKScriptName);
return GetInstanceAI<AI>(obj, SFKScriptName);
}
#endif