Merge branch 'master' into 4.3.4 (+ some changes to minimize differences)

Conflicts:
	src/server/game/Entities/Transport/Transport.cpp
	src/server/game/Entities/Unit/StatSystem.cpp
	src/server/game/Events/GameEventMgr.cpp
	src/server/game/Globals/ObjectMgr.cpp
	src/server/game/Miscellaneous/Formulas.h
	src/server/game/Miscellaneous/SharedDefines.h
	src/server/game/Movement/Waypoints/WaypointManager.cpp
	src/server/game/Skills/SkillDiscovery.cpp
	src/server/game/Skills/SkillExtraItems.cpp
	src/server/game/Warden/WardenCheckMgr.cpp
	src/server/game/Weather/WeatherMgr.cpp
This commit is contained in:
Spp
2013-01-30 11:57:02 +01:00
53 changed files with 253 additions and 301 deletions

View File

@@ -16,6 +16,11 @@
*/
#include "baradin_hold.h"
#include "InstanceScript.h"
#include "ScriptMgr.h"
#include "Player.h"
#include "ObjectAccessor.h"
#include "ScriptedCreature.h"
enum Texts
{
@@ -137,7 +142,7 @@ class boss_alizabal : public CreatureScript
}
}
void MovementInform(uint32 type, uint32 pointId)
void MovementInform(uint32 /*type*/, uint32 pointId)
{
switch (pointId)
{

View File

@@ -15,7 +15,9 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include"baradin_hold.h"
#include "baradin_hold.h"
#include "InstanceScript.h"
#include "ScriptMgr.h"
DoorData const doorData[] =
{
@@ -94,7 +96,8 @@ public:
default:
break;
}
return NULL;
return 0;
}
void OnGameObjectRemove(GameObject* go)

View File

@@ -122,7 +122,7 @@ public:
bool IsEncounterInProgress() const
{
if (const_cast<instance_dark_portal_InstanceMapScript*>(this)->GetData(TYPE_MEDIVH) == IN_PROGRESS)
if (GetData(TYPE_MEDIVH) == IN_PROGRESS)
return true;
return false;

View File

@@ -19,7 +19,7 @@
#define FIRELANDS_H_
#include "Map.h"
#include "Creature.h"
#include "CreatureAI.h"
#define FirelandsScriptName "instance_firelands"

View File

@@ -86,8 +86,8 @@ public:
return true;
}
protected:
InstanceScript* _instance;
Unit* _owner;
InstanceScript* _instance;
};
class boss_earthrager_ptah : public CreatureScript
@@ -262,8 +262,8 @@ public:
}
protected:
bool _hasDispersed;
uint8 _summonDeaths;
bool _hasDispersed;
};
CreatureAI* GetAI(Creature* creature) const

View File

@@ -1249,7 +1249,6 @@ class spell_deathbringer_blood_nova_targeting : public SpellScriptLoader
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_deathbringer_blood_nova_targeting_SpellScript::FilterTargetsInitial, EFFECT_0, TARGET_UNIT_SRC_AREA_ENEMY);
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_deathbringer_blood_nova_targeting_SpellScript::FilterTargetsSubsequent, EFFECT_1, TARGET_UNIT_SRC_AREA_ENEMY);
OnEffectHitTarget += SpellEffectFn(spell_deathbringer_blood_nova_targeting_SpellScript::HandleForceCast, EFFECT_0, SPELL_EFFECT_FORCE_CAST);
OnEffectHitTarget += SpellEffectFn(spell_deathbringer_blood_nova_targeting_SpellScript::HandleForceCast, EFFECT_0, SPELL_EFFECT_FORCE_CAST);
}
WorldObject* target;

View File

@@ -554,7 +554,7 @@ class spell_paralyze_pinnacle : public SpellScriptLoader
void FilterTargets(std::list<WorldObject*>& unitList)
{
unitList.remove_if (RitualTargetCheck(GetCaster()));
unitList.remove_if(RitualTargetCheck(GetCaster()));
}
void Register()