mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Scripted: Fix non pch build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "CombatAI.h"
|
||||
#include "Pet.h"
|
||||
|
||||
enum MageSpells
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "PassiveAI.h"
|
||||
#include "PetAI.h"
|
||||
|
||||
enum PriestSpells
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1803,7 +1803,8 @@ class spell_q13011_bear_flank_master : public SpellScriptLoader
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) OVERRIDE
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_BEAR_FLANK_MASTER) || !sSpellMgr->GetSpellInfo(SPELL_CREATE_BEAR_FLANK))
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_BEAR_FLANK_MASTER) ||
|
||||
!sSpellMgr->GetSpellInfo(SPELL_CREATE_BEAR_FLANK))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -1813,7 +1814,7 @@ class spell_q13011_bear_flank_master : public SpellScriptLoader
|
||||
return GetCaster()->GetTypeId() == TYPEID_UNIT;
|
||||
}
|
||||
|
||||
void HandleScript(SpellEffIndex effIndex)
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
bool failed = RAND(0, 1); // 50% chance
|
||||
Creature* creature = GetCaster()->ToCreature();
|
||||
|
||||
@@ -49,9 +49,7 @@ EndContentData */
|
||||
#include "ObjectMgr.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "World.h"
|
||||
#include "PetAI.h"
|
||||
#include "PassiveAI.h"
|
||||
#include "CombatAI.h"
|
||||
#include "GameEventMgr.h"
|
||||
#include "GridNotifiers.h"
|
||||
#include "GridNotifiersImpl.h"
|
||||
|
||||
Reference in New Issue
Block a user