Scripted: Fix non pch build

This commit is contained in:
Vincent-Michael committed 2013-08-09 20:00:18 +02:00
1 parent 8c7db6cc8d
commit 8aff3945f2
7 files changed
+14 -6

No files matched your search

+3 -1
View File
@@ -22,13 +22,15 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "CombatAI.h"
#include "GridNotifiers.h"
enum DeathKnightSpells
{
SPELL_DK_SUMMON_GARGOYLE_1 = 49206,
SPELL_DK_SUMMON_GARGOYLE_2 = 50514,
SPELL_DK_DISMISS_GARGOYLE = 50515,
SPELL_DK_SANCTUARY = 54661,
SPELL_DK_SANCTUARY = 54661
};
class npc_pet_dk_ebon_gargoyle : public CreatureScript
+1 -1
View File
@@ -101,7 +101,7 @@ class npc_pet_hunter_snake_trap : public CreatureScript
if (_spellTimer <= diff)
{
if (_isViper) //Viper
if (_isViper) // Viper
{
if (urand(0, 2) == 0) //33% chance to cast
{
+2
View File
@@ -22,6 +22,8 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "CombatAI.h"
#include "Pet.h"
enum MageSpells
{
+1
View File
@@ -22,6 +22,7 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "PassiveAI.h"
#include "PetAI.h"
enum PriestSpells
+4
View File
@@ -63,6 +63,8 @@ class npc_pet_shaman_earth_elemental : public CreatureScript
if (!UpdateVictim())
return;
events.Update(diff);
if (_events.ExecuteEvent() == EVENT_SHAMAN_ANGEREDEARTH)
{
DoCastVictim(SPELL_SHAMAN_ANGEREDEARTH);
@@ -108,6 +110,8 @@ class npc_pet_shaman_fire_elemental : public CreatureScript
if (me->HasUnitState(UNIT_STATE_CASTING))
return;
events.Update(diff);
while (uint32 eventId = _events.ExecuteEvent())
{
switch (eventId)