* Tabs to spaces -- using: perl -p -i -e "s/\t/ /g" *
--HG-- branch : trunk
This commit is contained in:
+5
-5
@@ -1033,11 +1033,11 @@ int ChatHandler::ParseCommands(const char* text)
|
|||||||
++text;
|
++text;
|
||||||
|
|
||||||
if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd))
|
if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd))
|
||||||
{
|
{
|
||||||
if(m_session && m_session->GetSecurity() == SEC_PLAYER)
|
if(m_session && m_session->GetSecurity() == SEC_PLAYER)
|
||||||
return 0;
|
return 0;
|
||||||
SendSysMessage(LANG_NO_CMD);
|
SendSysMessage(LANG_NO_CMD);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+13
-13
@@ -623,14 +623,14 @@ bool Creature::AIM_Initialize(CreatureAI* ai)
|
|||||||
|
|
||||||
void Creature::Motion_Initialize()
|
void Creature::Motion_Initialize()
|
||||||
{
|
{
|
||||||
if(!m_formation)
|
if(!m_formation)
|
||||||
i_motionMaster.Initialize();
|
i_motionMaster.Initialize();
|
||||||
else if(m_formation->getLeader() == this)
|
else if(m_formation->getLeader() == this)
|
||||||
{
|
{
|
||||||
m_formation->FormationReset(false);
|
m_formation->FormationReset(false);
|
||||||
i_motionMaster.Initialize();
|
i_motionMaster.Initialize();
|
||||||
}
|
}
|
||||||
else if(m_formation->isFormed())
|
else if(m_formation->isFormed())
|
||||||
i_motionMaster.MoveIdle(MOTION_SLOT_IDLE); //wait the order of leader
|
i_motionMaster.MoveIdle(MOTION_SLOT_IDLE); //wait the order of leader
|
||||||
else
|
else
|
||||||
i_motionMaster.Initialize();
|
i_motionMaster.Initialize();
|
||||||
@@ -1672,10 +1672,10 @@ void Creature::setDeathState(DeathState s)
|
|||||||
|
|
||||||
Unit::setDeathState(CORPSE);
|
Unit::setDeathState(CORPSE);
|
||||||
|
|
||||||
//Dismiss group if is leader
|
//Dismiss group if is leader
|
||||||
if(m_formation && m_formation->getLeader() == this)
|
if(m_formation && m_formation->getLeader() == this)
|
||||||
m_formation->FormationReset(true);
|
m_formation->FormationReset(true);
|
||||||
}
|
}
|
||||||
if(s == JUST_ALIVED)
|
if(s == JUST_ALIVED)
|
||||||
{
|
{
|
||||||
//if(isPet())
|
//if(isPet())
|
||||||
@@ -1691,7 +1691,7 @@ void Creature::setDeathState(DeathState s)
|
|||||||
SetMeleeDamageSchool(SpellSchools(cinfo->dmgschool));
|
SetMeleeDamageSchool(SpellSchools(cinfo->dmgschool));
|
||||||
LoadCreaturesAddon(true);
|
LoadCreaturesAddon(true);
|
||||||
Motion_Initialize();
|
Motion_Initialize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Creature::FallGround()
|
bool Creature::FallGround()
|
||||||
|
|||||||
+2
-2
@@ -652,8 +652,8 @@ class TRINITY_DLL_SPEC Creature : public Unit
|
|||||||
void UpdateWaypointID(uint32 wpID){m_waypointID = wpID;}
|
void UpdateWaypointID(uint32 wpID){m_waypointID = wpID;}
|
||||||
|
|
||||||
void SearchFormation();
|
void SearchFormation();
|
||||||
CreatureGroup *GetFormation() {return m_formation;}
|
CreatureGroup *GetFormation() {return m_formation;}
|
||||||
void SetFormation(CreatureGroup *formation) {m_formation = formation;}
|
void SetFormation(CreatureGroup *formation) {m_formation = formation;}
|
||||||
|
|
||||||
Unit *SelectVictim();
|
Unit *SelectVictim();
|
||||||
void SetDeadByDefault (bool death_state) {m_isDeadByDefault = death_state;}
|
void SetDeadByDefault (bool death_state) {m_isDeadByDefault = death_state;}
|
||||||
|
|||||||
@@ -118,15 +118,15 @@ void CreatureGroupManager::LoadCreatureFormations()
|
|||||||
|
|
||||||
bar.step();
|
bar.step();
|
||||||
//Load group member data
|
//Load group member data
|
||||||
group_member = new FormationInfo;
|
group_member = new FormationInfo;
|
||||||
group_member->leaderGUID = fields[0].GetUInt32();
|
group_member->leaderGUID = fields[0].GetUInt32();
|
||||||
uint32 memberGUID = fields[1].GetUInt32();
|
uint32 memberGUID = fields[1].GetUInt32();
|
||||||
group_member->groupAI = fields[4].GetUInt8();
|
group_member->groupAI = fields[4].GetUInt8();
|
||||||
//If creature is group leader we may skip loading of dist/angle
|
//If creature is group leader we may skip loading of dist/angle
|
||||||
if(group_member->leaderGUID != memberGUID)
|
if(group_member->leaderGUID != memberGUID)
|
||||||
{
|
{
|
||||||
group_member->follow_dist = fields[2].GetUInt32();
|
group_member->follow_dist = fields[2].GetUInt32();
|
||||||
group_member->follow_angle = fields[3].GetUInt32();
|
group_member->follow_angle = fields[3].GetUInt32();
|
||||||
}
|
}
|
||||||
|
|
||||||
CreatureGroupMap[memberGUID] = group_member;
|
CreatureGroupMap[memberGUID] = group_member;
|
||||||
@@ -217,7 +217,7 @@ void CreatureGroup::LeaderMoveTo(float x, float y, float z)
|
|||||||
if(!m_leader)
|
if(!m_leader)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float pathangle = atan2(m_leader->GetPositionY() - y, m_leader->GetPositionX() - x);
|
float pathangle = atan2(m_leader->GetPositionY() - y, m_leader->GetPositionX() - x);
|
||||||
|
|
||||||
for(CreatureGroupMemberType::iterator itr = m_members.begin(); itr != m_members.end(); ++itr)
|
for(CreatureGroupMemberType::iterator itr = m_members.begin(); itr != m_members.end(); ++itr)
|
||||||
{
|
{
|
||||||
@@ -226,7 +226,7 @@ void CreatureGroup::LeaderMoveTo(float x, float y, float z)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
float angle = itr->second->follow_angle;
|
float angle = itr->second->follow_angle;
|
||||||
float dist = itr->second->follow_dist;
|
float dist = itr->second->follow_dist;
|
||||||
|
|
||||||
float dx = x + cos(angle + pathangle) * dist;
|
float dx = x + cos(angle + pathangle) * dist;
|
||||||
float dy = y + sin(angle + pathangle) * dist;
|
float dy = y + sin(angle + pathangle) * dist;
|
||||||
|
|||||||
+24
-24
@@ -27,18 +27,18 @@ class CreatureGroup;
|
|||||||
|
|
||||||
struct FormationInfo
|
struct FormationInfo
|
||||||
{
|
{
|
||||||
uint32 leaderGUID;
|
uint32 leaderGUID;
|
||||||
float follow_dist;
|
float follow_dist;
|
||||||
float follow_angle;
|
float follow_angle;
|
||||||
uint8 groupAI;
|
uint8 groupAI;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CreatureGroupManager
|
class CreatureGroupManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void AddCreatureToGroup(uint32 group_id, Creature *creature);
|
void AddCreatureToGroup(uint32 group_id, Creature *creature);
|
||||||
void RemoveCreatureFromGroup(CreatureGroup *group, Creature *creature);
|
void RemoveCreatureFromGroup(CreatureGroup *group, Creature *creature);
|
||||||
void LoadCreatureFormations();
|
void LoadCreatureFormations();
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::multimap<uint32/*leaderDBGUID*/, CreatureGroup*> CreatureGroupHolderType;
|
typedef std::multimap<uint32/*leaderDBGUID*/, CreatureGroup*> CreatureGroupHolderType;
|
||||||
@@ -50,30 +50,30 @@ extern CreatureGroupInfoType CreatureGroupMap;
|
|||||||
class CreatureGroup
|
class CreatureGroup
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
Creature *m_leader; //Important do not forget sometimes to work with pointers instead synonims :D:D
|
Creature *m_leader; //Important do not forget sometimes to work with pointers instead synonims :D:D
|
||||||
typedef std::map<Creature*, FormationInfo*> CreatureGroupMemberType;
|
typedef std::map<Creature*, FormationInfo*> CreatureGroupMemberType;
|
||||||
CreatureGroupMemberType m_members;
|
CreatureGroupMemberType m_members;
|
||||||
|
|
||||||
uint32 m_groupID, mInstanceID;
|
uint32 m_groupID, mInstanceID;
|
||||||
bool m_Formed;
|
bool m_Formed;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//Group cannot be created empty
|
//Group cannot be created empty
|
||||||
explicit CreatureGroup(uint32 id, uint32 InstanceID) : m_groupID(id), m_leader(NULL), mInstanceID(InstanceID), m_Formed(false) {}
|
explicit CreatureGroup(uint32 id, uint32 InstanceID) : m_groupID(id), m_leader(NULL), mInstanceID(InstanceID), m_Formed(false) {}
|
||||||
~CreatureGroup(){sLog.outDebug("Destroying group");}
|
~CreatureGroup(){sLog.outDebug("Destroying group");}
|
||||||
|
|
||||||
Creature* getLeader() const { return m_leader; }
|
Creature* getLeader() const { return m_leader; }
|
||||||
uint32 GetId() const { return m_groupID; }
|
uint32 GetId() const { return m_groupID; }
|
||||||
uint32 getInstanceID() const { return mInstanceID; }
|
uint32 getInstanceID() const { return mInstanceID; }
|
||||||
bool isEmpty() const { return m_members.empty(); }
|
bool isEmpty() const { return m_members.empty(); }
|
||||||
bool isFormed() const { return m_Formed; }
|
bool isFormed() const { return m_Formed; }
|
||||||
|
|
||||||
void AddMember(Creature *member);
|
void AddMember(Creature *member);
|
||||||
void RemoveMember(Creature *member);
|
void RemoveMember(Creature *member);
|
||||||
void FormationReset(bool dismiss);
|
void FormationReset(bool dismiss);
|
||||||
|
|
||||||
void LeaderMoveTo(float x, float y, float z);
|
void LeaderMoveTo(float x, float y, float z);
|
||||||
void MemberAttackStart(Creature* member, Unit *target);
|
void MemberAttackStart(Creature* member, Unit *target);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define formation_mgr Trinity::Singleton<CreatureGroupManager>::Instance()
|
#define formation_mgr Trinity::Singleton<CreatureGroupManager>::Instance()
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ HomeMovementGenerator<Creature>::Update(Creature &owner, const uint32& time_diff
|
|||||||
if(owner.GetDefaultMovementType()==IDLE_MOTION_TYPE)
|
if(owner.GetDefaultMovementType()==IDLE_MOTION_TYPE)
|
||||||
{
|
{
|
||||||
sLog.outDebug("Entering HomeMovement::GetDestination(z,y,z)");
|
sLog.outDebug("Entering HomeMovement::GetDestination(z,y,z)");
|
||||||
owner.SetOrientation(ori);
|
owner.SetOrientation(ori);
|
||||||
WorldPacket packet;
|
WorldPacket packet;
|
||||||
owner.BuildHeartBeatMsg(&packet);
|
owner.BuildHeartBeatMsg(&packet);
|
||||||
owner.SendMessageToSet(&packet, false);
|
owner.SendMessageToSet(&packet, false);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class TRINITY_DLL_SPEC HomeMovementGenerator<Creature>
|
|||||||
|
|
||||||
bool GetDestination(float& x, float& y, float& z) const { i_destinationHolder.GetDestination(x,y,z); return true; }
|
bool GetDestination(float& x, float& y, float& z) const { i_destinationHolder.GetDestination(x,y,z); return true; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _setTargetLocation(Creature &);
|
void _setTargetLocation(Creature &);
|
||||||
DestinationHolder< Traveller<Creature> > i_destinationHolder;
|
DestinationHolder< Traveller<Creature> > i_destinationHolder;
|
||||||
|
|
||||||
|
|||||||
+21
-21
@@ -272,9 +272,9 @@ enum TrinityStrings
|
|||||||
LANG_COMMAND_WHISPERON = 285,
|
LANG_COMMAND_WHISPERON = 285,
|
||||||
LANG_COMMAND_WHISPEROFF = 286,
|
LANG_COMMAND_WHISPEROFF = 286,
|
||||||
LANG_COMMAND_CREATGUIDNOTFOUND = 287,
|
LANG_COMMAND_CREATGUIDNOTFOUND = 287,
|
||||||
// TICKET STRINGS NEED REWRITE // 288-296 FREE
|
// TICKET STRINGS NEED REWRITE // 288-296 FREE
|
||||||
|
|
||||||
// END
|
// END
|
||||||
LANG_COMMAND_SPAWNDIST = 297,
|
LANG_COMMAND_SPAWNDIST = 297,
|
||||||
LANG_COMMAND_SPAWNTIME = 298,
|
LANG_COMMAND_SPAWNTIME = 298,
|
||||||
LANG_COMMAND_MODIFY_HONOR = 299,
|
LANG_COMMAND_MODIFY_HONOR = 299,
|
||||||
@@ -768,7 +768,7 @@ enum TrinityStrings
|
|||||||
// Room for more level 3 1128-1199 not used
|
// Room for more level 3 1128-1199 not used
|
||||||
|
|
||||||
// AV
|
// AV
|
||||||
LANG_BG_AV_ALLY = 1200,
|
LANG_BG_AV_ALLY = 1200,
|
||||||
LANG_BG_AV_HORDE = 1201,
|
LANG_BG_AV_HORDE = 1201,
|
||||||
LANG_BG_AV_TOWER_TAKEN = 1202,
|
LANG_BG_AV_TOWER_TAKEN = 1202,
|
||||||
LANG_BG_AV_TOWER_ASSAULTED = 1203,
|
LANG_BG_AV_TOWER_ASSAULTED = 1203,
|
||||||
@@ -806,24 +806,24 @@ enum TrinityStrings
|
|||||||
LANG_BG_AV_A_CAPTAIN_DEAD = 1232,
|
LANG_BG_AV_A_CAPTAIN_DEAD = 1232,
|
||||||
// FREE IDS 1233-9999
|
// FREE IDS 1233-9999
|
||||||
|
|
||||||
// Ticket Strings 2000-2029
|
// Ticket Strings 2000-2029
|
||||||
LANG_COMMAND_TICKETNEW = 2000,
|
LANG_COMMAND_TICKETNEW = 2000,
|
||||||
LANG_COMMAND_TICKETUPDATED = 2001,
|
LANG_COMMAND_TICKETUPDATED = 2001,
|
||||||
LANG_COMMAND_TICKETPLAYERABANDON = 2002,
|
LANG_COMMAND_TICKETPLAYERABANDON = 2002,
|
||||||
LANG_COMMAND_TICKETCLOSED = 2003,
|
LANG_COMMAND_TICKETCLOSED = 2003,
|
||||||
LANG_COMMAND_TICKETDELETED = 2004,
|
LANG_COMMAND_TICKETDELETED = 2004,
|
||||||
LANG_COMMAND_TICKETNOTEXIST = 2005,
|
LANG_COMMAND_TICKETNOTEXIST = 2005,
|
||||||
LANG_COMMAND_TICKETCLOSEFIRST = 2006,
|
LANG_COMMAND_TICKETCLOSEFIRST = 2006,
|
||||||
LANG_COMMAND_TICKETALREADYASSIGNED = 2007,
|
LANG_COMMAND_TICKETALREADYASSIGNED = 2007,
|
||||||
LANG_COMMAND_TICKETRELOAD = 2008,
|
LANG_COMMAND_TICKETRELOAD = 2008,
|
||||||
LANG_COMMAND_TICKETSHOWLIST = 2009,
|
LANG_COMMAND_TICKETSHOWLIST = 2009,
|
||||||
LANG_COMMAND_TICKETSHOWONLINELIST = 2010,
|
LANG_COMMAND_TICKETSHOWONLINELIST = 2010,
|
||||||
LANG_COMMAND_TICKETSHOWCLOSEDLIST = 2011,
|
LANG_COMMAND_TICKETSHOWCLOSEDLIST = 2011,
|
||||||
LANG_COMMAND_TICKETASSIGNERROR_A = 2012,
|
LANG_COMMAND_TICKETASSIGNERROR_A = 2012,
|
||||||
LANG_COMMAND_TICKETASSIGNERROR_B = 2013,
|
LANG_COMMAND_TICKETASSIGNERROR_B = 2013,
|
||||||
LANG_COMMAND_TICKETNOTASSIGNED = 2014,
|
LANG_COMMAND_TICKETNOTASSIGNED = 2014,
|
||||||
LANG_COMMAND_TICKETUNASSIGNSECURITY = 2015,
|
LANG_COMMAND_TICKETUNASSIGNSECURITY = 2015,
|
||||||
LANG_COMMAND_TICKETCANNOTCLOSE = 2016,
|
LANG_COMMAND_TICKETCANNOTCLOSE = 2016,
|
||||||
LANG_COMMAND_TICKETLISTGUID = 2017,
|
LANG_COMMAND_TICKETLISTGUID = 2017,
|
||||||
LANG_COMMAND_TICKETLISTNAME = 2018,
|
LANG_COMMAND_TICKETLISTNAME = 2018,
|
||||||
LANG_COMMAND_TICKETLISTAGE = 2019,
|
LANG_COMMAND_TICKETLISTAGE = 2019,
|
||||||
@@ -925,7 +925,7 @@ enum TrinityStrings
|
|||||||
LANG_OPVP_EP_FLIGHT_CGT = 10053,
|
LANG_OPVP_EP_FLIGHT_CGT = 10053,
|
||||||
LANG_OPVP_ZM_GOSSIP_ALLIANCE = 10054,
|
LANG_OPVP_ZM_GOSSIP_ALLIANCE = 10054,
|
||||||
LANG_OPVP_ZM_GOSSIP_HORDE = 10055,
|
LANG_OPVP_ZM_GOSSIP_HORDE = 10055,
|
||||||
|
|
||||||
// Use for custom patches 11000-11999
|
// Use for custom patches 11000-11999
|
||||||
|
|
||||||
// NOT RESERVED IDS 12000-1999999999
|
// NOT RESERVED IDS 12000-1999999999
|
||||||
|
|||||||
+9
-9
@@ -2145,7 +2145,7 @@ bool ChatHandler::HandleKickPlayerCommand(const char *args)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(HasLowerSecurity(player, 0))
|
if(HasLowerSecurity(player, 0))
|
||||||
{
|
{
|
||||||
SendSysMessage(LANG_YOURS_SECURITY_IS_LOW); //maybe replacement string for this later on
|
SendSysMessage(LANG_YOURS_SECURITY_IS_LOW); //maybe replacement string for this later on
|
||||||
SetSentErrorMessage(true);
|
SetSentErrorMessage(true);
|
||||||
@@ -2153,21 +2153,21 @@ bool ChatHandler::HandleKickPlayerCommand(const char *args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string nameLink = playerLink(name);
|
std::string nameLink = playerLink(name);
|
||||||
|
|
||||||
if(sWorld.KickPlayer(name))
|
if(sWorld.KickPlayer(name))
|
||||||
{
|
{
|
||||||
if(sWorld.getConfig(CONFIG_SHOW_KICK_IN_WORLD) == 1)
|
if(sWorld.getConfig(CONFIG_SHOW_KICK_IN_WORLD) == 1)
|
||||||
{
|
{
|
||||||
sWorld.SendWorldText(LANG_COMMAND_KICKMESSAGE, nameLink.c_str(), kicker.c_str(), reason.c_str());
|
sWorld.SendWorldText(LANG_COMMAND_KICKMESSAGE, nameLink.c_str(), kicker.c_str(), reason.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PSendSysMessage(LANG_COMMAND_KICKMESSAGE,nameLink.c_str());
|
PSendSysMessage(LANG_COMMAND_KICKMESSAGE,nameLink.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PSendSysMessage(LANG_COMMAND_KICKNOTFOUNDPLAYER,nameLink.c_str());
|
PSendSysMessage(LANG_COMMAND_KICKNOTFOUNDPLAYER,nameLink.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4458,7 +4458,7 @@ bool ChatHandler::HandlePetTpCommand(const char *args)
|
|||||||
|
|
||||||
uint32 tp = atol(args);
|
uint32 tp = atol(args);
|
||||||
|
|
||||||
//pet->SetTP(tp);
|
//pet->SetTP(tp);
|
||||||
|
|
||||||
PSendSysMessage("Pet's tp changed to %u", tp);
|
PSendSysMessage("Pet's tp changed to %u", tp);
|
||||||
return true;
|
return true;
|
||||||
@@ -4570,9 +4570,9 @@ bool ChatHandler::HandleNpcAddFormationCommand(const char* args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32 lowguid = pCreature->GetDBTableGUIDLow();
|
uint32 lowguid = pCreature->GetDBTableGUIDLow();
|
||||||
if(pCreature->GetFormation())
|
if(pCreature->GetFormation())
|
||||||
{
|
{
|
||||||
PSendSysMessage("Selected creature is already member of group %u", pCreature->GetFormation()->GetId());
|
PSendSysMessage("Selected creature is already member of group %u", pCreature->GetFormation()->GetId());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+260
-260
@@ -311,266 +311,266 @@ libmangosgame_a_SOURCES = \
|
|||||||
GroupReference.h \
|
GroupReference.h \
|
||||||
GroupRefManager.h
|
GroupRefManager.h
|
||||||
=======
|
=======
|
||||||
AccountMgr.cpp \
|
AccountMgr.cpp \
|
||||||
AccountMgr.h \
|
AccountMgr.h \
|
||||||
AchievementMgr.h \
|
AchievementMgr.h \
|
||||||
AchievementMgr.cpp \
|
AchievementMgr.cpp \
|
||||||
AggressorAI.cpp \
|
AggressorAI.cpp \
|
||||||
AggressorAI.h \
|
AggressorAI.h \
|
||||||
AnimalRandomMovementGenerator.h \
|
AnimalRandomMovementGenerator.h \
|
||||||
ArenaTeam.cpp \
|
ArenaTeam.cpp \
|
||||||
ArenaTeam.h \
|
ArenaTeam.h \
|
||||||
ArenaTeamHandler.cpp \
|
ArenaTeamHandler.cpp \
|
||||||
AuctionHouseHandler.cpp \
|
AuctionHouseHandler.cpp \
|
||||||
AuctionHouseMgr.cpp \
|
AuctionHouseMgr.cpp \
|
||||||
AuctionHouseMgr.h \
|
AuctionHouseMgr.h \
|
||||||
Bag.cpp \
|
Bag.cpp \
|
||||||
Bag.h \
|
Bag.h \
|
||||||
BattleGround.cpp \
|
BattleGround.cpp \
|
||||||
BattleGroundAA.cpp \
|
BattleGroundAA.cpp \
|
||||||
BattleGroundAB.cpp \
|
BattleGroundAB.cpp \
|
||||||
BattleGroundAV.cpp \
|
BattleGroundAV.cpp \
|
||||||
BattleGroundBE.cpp \
|
BattleGroundBE.cpp \
|
||||||
BattleGroundDS.cpp \
|
BattleGroundDS.cpp \
|
||||||
BattleGroundEY.cpp \
|
BattleGroundEY.cpp \
|
||||||
BattleGroundNA.cpp \
|
BattleGroundNA.cpp \
|
||||||
BattleGroundRL.cpp \
|
BattleGroundRL.cpp \
|
||||||
BattleGroundRV.cpp \
|
BattleGroundRV.cpp \
|
||||||
BattleGroundSA.cpp \
|
BattleGroundSA.cpp \
|
||||||
BattleGroundWS.cpp \
|
BattleGroundWS.cpp \
|
||||||
BattleGround.h \
|
BattleGround.h \
|
||||||
BattleGroundAA.h \
|
BattleGroundAA.h \
|
||||||
BattleGroundAB.h \
|
BattleGroundAB.h \
|
||||||
BattleGroundAV.h \
|
BattleGroundAV.h \
|
||||||
BattleGroundBE.h \
|
BattleGroundBE.h \
|
||||||
BattleGroundDS.h \
|
BattleGroundDS.h \
|
||||||
BattleGroundEY.h \
|
BattleGroundEY.h \
|
||||||
BattleGroundNA.h \
|
BattleGroundNA.h \
|
||||||
BattleGroundRL.h \
|
BattleGroundRL.h \
|
||||||
BattleGroundRV.h \
|
BattleGroundRV.h \
|
||||||
BattleGroundSA.h \
|
BattleGroundSA.h \
|
||||||
BattleGroundWS.h \
|
BattleGroundWS.h \
|
||||||
BattleGroundHandler.cpp \
|
BattleGroundHandler.cpp \
|
||||||
BattleGroundMgr.cpp \
|
BattleGroundMgr.cpp \
|
||||||
BattleGroundMgr.h \
|
BattleGroundMgr.h \
|
||||||
Calendar.cpp \
|
Calendar.cpp \
|
||||||
Calendar.h \
|
Calendar.h \
|
||||||
CalendarHandler.cpp \
|
CalendarHandler.cpp \
|
||||||
Cell.h \
|
Cell.h \
|
||||||
CellImpl.h \
|
CellImpl.h \
|
||||||
Channel.cpp \
|
Channel.cpp \
|
||||||
Channel.h \
|
Channel.h \
|
||||||
ChannelHandler.cpp \
|
ChannelHandler.cpp \
|
||||||
ChannelMgr.h \
|
ChannelMgr.h \
|
||||||
CharacterHandler.cpp \
|
CharacterHandler.cpp \
|
||||||
Chat.cpp \
|
Chat.cpp \
|
||||||
Chat.h \
|
Chat.h \
|
||||||
ChatHandler.cpp \
|
ChatHandler.cpp \
|
||||||
CombatHandler.cpp \
|
CombatHandler.cpp \
|
||||||
ConfusedMovementGenerator.cpp \
|
ConfusedMovementGenerator.cpp \
|
||||||
ConfusedMovementGenerator.h \
|
ConfusedMovementGenerator.h \
|
||||||
Corpse.cpp \
|
Corpse.cpp \
|
||||||
Corpse.h \
|
Corpse.h \
|
||||||
CreatureAI.cpp \
|
CreatureAI.cpp \
|
||||||
CreatureAI.h \
|
CreatureAI.h \
|
||||||
CreatureAIImpl.h \
|
CreatureAIImpl.h \
|
||||||
CreatureAIRegistry.cpp \
|
CreatureAIRegistry.cpp \
|
||||||
CreatureAIRegistry.h \
|
CreatureAIRegistry.h \
|
||||||
CreatureAISelector.cpp \
|
CreatureAISelector.cpp \
|
||||||
CreatureAISelector.h \
|
CreatureAISelector.h \
|
||||||
Creature.cpp \
|
Creature.cpp \
|
||||||
Creature.h \
|
Creature.h \
|
||||||
DBCEnums.h \
|
DBCEnums.h \
|
||||||
DBCfmt.h \
|
DBCfmt.h \
|
||||||
DBCStores.cpp \
|
DBCStores.cpp \
|
||||||
DBCStores.h \
|
DBCStores.h \
|
||||||
DBCStructure.h \
|
DBCStructure.h \
|
||||||
debugcmds.cpp \
|
debugcmds.cpp \
|
||||||
DestinationHolder.cpp \
|
DestinationHolder.cpp \
|
||||||
DestinationHolder.h \
|
DestinationHolder.h \
|
||||||
DestinationHolderImp.h \
|
DestinationHolderImp.h \
|
||||||
DuelHandler.cpp \
|
DuelHandler.cpp \
|
||||||
DynamicObject.cpp \
|
DynamicObject.cpp \
|
||||||
DynamicObject.h \
|
DynamicObject.h \
|
||||||
FleeingMovementGenerator.cpp \
|
FleeingMovementGenerator.cpp \
|
||||||
FleeingMovementGenerator.h \
|
FleeingMovementGenerator.h \
|
||||||
Formulas.h \
|
Formulas.h \
|
||||||
GameEventMgr.cpp \
|
GameEventMgr.cpp \
|
||||||
GameEventMgr.h \
|
GameEventMgr.h \
|
||||||
GameObject.cpp \
|
GameObject.cpp \
|
||||||
GameObject.h \
|
GameObject.h \
|
||||||
GlobalEvents.cpp \
|
GlobalEvents.cpp \
|
||||||
GlobalEvents.h \
|
GlobalEvents.h \
|
||||||
GMTicketHandler.cpp \
|
GMTicketHandler.cpp \
|
||||||
GMTicketMgr.cpp \
|
GMTicketMgr.cpp \
|
||||||
GMTicketMgr.h \
|
GMTicketMgr.h \
|
||||||
GossipDef.cpp \
|
GossipDef.cpp \
|
||||||
GossipDef.h \
|
GossipDef.h \
|
||||||
GridDefines.h \
|
GridDefines.h \
|
||||||
GridNotifiers.cpp \
|
GridNotifiers.cpp \
|
||||||
GridNotifiers.h \
|
GridNotifiers.h \
|
||||||
GridNotifiersImpl.h \
|
GridNotifiersImpl.h \
|
||||||
GridStates.cpp \
|
GridStates.cpp \
|
||||||
GridStates.h \
|
GridStates.h \
|
||||||
Group.cpp \
|
Group.cpp \
|
||||||
Group.h \
|
Group.h \
|
||||||
GroupHandler.cpp \
|
GroupHandler.cpp \
|
||||||
GuardAI.cpp \
|
GuardAI.cpp \
|
||||||
GuardAI.h \
|
GuardAI.h \
|
||||||
Guild.cpp \
|
Guild.cpp \
|
||||||
Guild.h \
|
Guild.h \
|
||||||
GuildHandler.cpp \
|
GuildHandler.cpp \
|
||||||
HomeMovementGenerator.cpp \
|
HomeMovementGenerator.cpp \
|
||||||
HomeMovementGenerator.h \
|
HomeMovementGenerator.h \
|
||||||
HostilRefManager.cpp \
|
HostilRefManager.cpp \
|
||||||
HostilRefManager.h \
|
HostilRefManager.h \
|
||||||
IdleMovementGenerator.cpp \
|
IdleMovementGenerator.cpp \
|
||||||
IdleMovementGenerator.h \
|
IdleMovementGenerator.h \
|
||||||
InstanceData.cpp \
|
InstanceData.cpp \
|
||||||
InstanceData.h \
|
InstanceData.h \
|
||||||
InstanceSaveMgr.cpp \
|
InstanceSaveMgr.cpp \
|
||||||
InstanceSaveMgr.h \
|
InstanceSaveMgr.h \
|
||||||
Item.cpp \
|
Item.cpp \
|
||||||
Item.h \
|
Item.h \
|
||||||
ItemEnchantmentMgr.cpp \
|
ItemEnchantmentMgr.cpp \
|
||||||
ItemEnchantmentMgr.h \
|
ItemEnchantmentMgr.h \
|
||||||
ItemHandler.cpp \
|
ItemHandler.cpp \
|
||||||
ItemPrototype.h \
|
ItemPrototype.h \
|
||||||
Language.h \
|
Language.h \
|
||||||
Level0.cpp \
|
Level0.cpp \
|
||||||
Level1.cpp \
|
Level1.cpp \
|
||||||
Level2.cpp \
|
Level2.cpp \
|
||||||
Level3.cpp \
|
Level3.cpp \
|
||||||
LFGHandler.cpp \
|
LFGHandler.cpp \
|
||||||
LootHandler.cpp \
|
LootHandler.cpp \
|
||||||
LootMgr.cpp \
|
LootMgr.cpp \
|
||||||
LootMgr.h \
|
LootMgr.h \
|
||||||
Mail.cpp \
|
Mail.cpp \
|
||||||
Mail.h \
|
Mail.h \
|
||||||
Map.cpp \
|
Map.cpp \
|
||||||
Map.h \
|
Map.h \
|
||||||
MapInstanced.cpp \
|
MapInstanced.cpp \
|
||||||
MapInstanced.h \
|
MapInstanced.h \
|
||||||
MapManager.cpp \
|
MapManager.cpp \
|
||||||
MapManager.h \
|
MapManager.h \
|
||||||
MapReference.h \
|
MapReference.h \
|
||||||
MapRefManager.h \
|
MapRefManager.h \
|
||||||
MiscHandler.cpp \
|
MiscHandler.cpp \
|
||||||
MotionMaster.cpp \
|
MotionMaster.cpp \
|
||||||
MotionMaster.h \
|
MotionMaster.h \
|
||||||
MovementGenerator.cpp \
|
MovementGenerator.cpp \
|
||||||
MovementGenerator.h \
|
MovementGenerator.h \
|
||||||
MovementGeneratorImpl.h \
|
MovementGeneratorImpl.h \
|
||||||
MovementHandler.cpp \
|
MovementHandler.cpp \
|
||||||
NPCHandler.cpp \
|
NPCHandler.cpp \
|
||||||
NPCHandler.h \
|
NPCHandler.h \
|
||||||
NullCreatureAI.cpp \
|
NullCreatureAI.cpp \
|
||||||
NullCreatureAI.h \
|
NullCreatureAI.h \
|
||||||
ObjectAccessor.cpp \
|
ObjectAccessor.cpp \
|
||||||
ObjectAccessor.h \
|
ObjectAccessor.h \
|
||||||
Object.cpp \
|
Object.cpp \
|
||||||
ObjectDefines.h \
|
ObjectDefines.h \
|
||||||
ObjectGridLoader.cpp \
|
ObjectGridLoader.cpp \
|
||||||
ObjectGridLoader.h \
|
ObjectGridLoader.h \
|
||||||
Object.h \
|
Object.h \
|
||||||
ObjectMgr.cpp \
|
ObjectMgr.cpp \
|
||||||
ObjectMgr.h \
|
ObjectMgr.h \
|
||||||
ObjectPosSelector.cpp \
|
ObjectPosSelector.cpp \
|
||||||
ObjectPosSelector.h \
|
ObjectPosSelector.h \
|
||||||
Opcodes.cpp \
|
Opcodes.cpp \
|
||||||
Opcodes.h \
|
Opcodes.h \
|
||||||
Path.h \
|
Path.h \
|
||||||
PetAI.cpp \
|
PetAI.cpp \
|
||||||
PetAI.h \
|
PetAI.h \
|
||||||
Pet.cpp \
|
Pet.cpp \
|
||||||
Pet.h \
|
Pet.h \
|
||||||
PetHandler.cpp \
|
PetHandler.cpp \
|
||||||
PetitionsHandler.cpp \
|
PetitionsHandler.cpp \
|
||||||
Player.cpp \
|
Player.cpp \
|
||||||
Player.h \
|
Player.h \
|
||||||
PlayerDump.cpp \
|
PlayerDump.cpp \
|
||||||
PlayerDump.h \
|
PlayerDump.h \
|
||||||
PointMovementGenerator.cpp \
|
PointMovementGenerator.cpp \
|
||||||
PointMovementGenerator.h \
|
PointMovementGenerator.h \
|
||||||
PoolHandler.cpp \
|
PoolHandler.cpp \
|
||||||
PoolHandler.h \
|
PoolHandler.h \
|
||||||
QueryHandler.cpp \
|
QueryHandler.cpp \
|
||||||
QuestDef.cpp \
|
QuestDef.cpp \
|
||||||
QuestDef.h \
|
QuestDef.h \
|
||||||
QuestHandler.cpp \
|
QuestHandler.cpp \
|
||||||
RandomMovementGenerator.cpp \
|
RandomMovementGenerator.cpp \
|
||||||
RandomMovementGenerator.h \
|
RandomMovementGenerator.h \
|
||||||
ReactorAI.cpp \
|
ReactorAI.cpp \
|
||||||
ReactorAI.h \
|
ReactorAI.h \
|
||||||
ReputationMgr.cpp \
|
ReputationMgr.cpp \
|
||||||
ReputationMgr.h \
|
ReputationMgr.h \
|
||||||
ScriptCalls.cpp \
|
ScriptCalls.cpp \
|
||||||
ScriptCalls.h \
|
ScriptCalls.h \
|
||||||
SharedDefines.h \
|
SharedDefines.h \
|
||||||
SkillHandler.cpp \
|
SkillHandler.cpp \
|
||||||
SpellAuraDefines.h \
|
SpellAuraDefines.h \
|
||||||
SpellAuras.cpp \
|
SpellAuras.cpp \
|
||||||
SpellAuras.h \
|
SpellAuras.h \
|
||||||
Spell.cpp \
|
Spell.cpp \
|
||||||
SpellEffects.cpp \
|
SpellEffects.cpp \
|
||||||
Spell.h \
|
Spell.h \
|
||||||
SkillDiscovery.cpp \
|
SkillDiscovery.cpp \
|
||||||
SkillDiscovery.h \
|
SkillDiscovery.h \
|
||||||
SkillExtraItems.cpp \
|
SkillExtraItems.cpp \
|
||||||
SkillExtraItems.h \
|
SkillExtraItems.h \
|
||||||
SpellHandler.cpp \
|
SpellHandler.cpp \
|
||||||
SocialMgr.cpp \
|
SocialMgr.cpp \
|
||||||
SocialMgr.h \
|
SocialMgr.h \
|
||||||
SpellMgr.cpp \
|
SpellMgr.cpp \
|
||||||
SpellMgr.h \
|
SpellMgr.h \
|
||||||
StatSystem.cpp \
|
StatSystem.cpp \
|
||||||
TargetedMovementGenerator.cpp \
|
TargetedMovementGenerator.cpp \
|
||||||
TargetedMovementGenerator.h \
|
TargetedMovementGenerator.h \
|
||||||
TaxiHandler.cpp \
|
TaxiHandler.cpp \
|
||||||
TemporarySummon.cpp \
|
TemporarySummon.cpp \
|
||||||
TemporarySummon.h \
|
TemporarySummon.h \
|
||||||
TotemAI.cpp \
|
TotemAI.cpp \
|
||||||
TotemAI.h \
|
TotemAI.h \
|
||||||
Totem.cpp \
|
Totem.cpp \
|
||||||
Totem.h \
|
Totem.h \
|
||||||
TradeHandler.cpp \
|
TradeHandler.cpp \
|
||||||
Transports.cpp \
|
Transports.cpp \
|
||||||
Transports.h \
|
Transports.h \
|
||||||
ThreatManager.cpp \
|
ThreatManager.cpp \
|
||||||
ThreatManager.h \
|
ThreatManager.h \
|
||||||
Traveller.h \
|
Traveller.h \
|
||||||
Unit.cpp \
|
Unit.cpp \
|
||||||
Unit.h \
|
Unit.h \
|
||||||
UnitEvents.h \
|
UnitEvents.h \
|
||||||
UpdateData.cpp \
|
UpdateData.cpp \
|
||||||
UpdateData.h \
|
UpdateData.h \
|
||||||
UpdateFields.h \
|
UpdateFields.h \
|
||||||
UpdateMask.h \
|
UpdateMask.h \
|
||||||
Vehicle.cpp \
|
Vehicle.cpp \
|
||||||
Vehicle.h \
|
Vehicle.h \
|
||||||
VoiceChatHandler.cpp \
|
VoiceChatHandler.cpp \
|
||||||
WaypointManager.cpp \
|
WaypointManager.cpp \
|
||||||
WaypointManager.h \
|
WaypointManager.h \
|
||||||
WaypointMovementGenerator.cpp \
|
WaypointMovementGenerator.cpp \
|
||||||
WaypointMovementGenerator.h \
|
WaypointMovementGenerator.h \
|
||||||
Weather.cpp \
|
Weather.cpp \
|
||||||
Weather.h \
|
Weather.h \
|
||||||
World.cpp \
|
World.cpp \
|
||||||
World.h \
|
World.h \
|
||||||
WorldLog.cpp \
|
WorldLog.cpp \
|
||||||
WorldLog.h \
|
WorldLog.h \
|
||||||
WorldSession.cpp \
|
WorldSession.cpp \
|
||||||
WorldSession.h \
|
WorldSession.h \
|
||||||
WorldSocket.cpp \
|
WorldSocket.cpp \
|
||||||
WorldSocket.h \
|
WorldSocket.h \
|
||||||
WorldSocketMgr.cpp \
|
WorldSocketMgr.cpp \
|
||||||
WorldSocketMgr.h \
|
WorldSocketMgr.h \
|
||||||
FollowerReference.cpp \
|
FollowerReference.cpp \
|
||||||
FollowerReference.h \
|
FollowerReference.h \
|
||||||
FollowerRefManager.h \
|
FollowerRefManager.h \
|
||||||
GroupReference.cpp \
|
GroupReference.cpp \
|
||||||
GroupReference.h \
|
GroupReference.h \
|
||||||
GroupRefManager.h
|
GroupRefManager.h
|
||||||
>>>>>>> 2429aaf2276d689e101ed88285f18449dbe4280d:src/game/Makefile.am
|
>>>>>>> 2429aaf2276d689e101ed88285f18449dbe4280d:src/game/Makefile.am
|
||||||
|
|
||||||
## Link against shared library
|
## Link against shared library
|
||||||
|
|||||||
@@ -525,9 +525,9 @@ void MotionMaster::DelayedDelete(_Ty curr)
|
|||||||
|
|
||||||
bool MotionMaster::GetDestination(float &x, float &y, float &z)
|
bool MotionMaster::GetDestination(float &x, float &y, float &z)
|
||||||
{
|
{
|
||||||
if(empty())
|
if(empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return top()->GetDestination(x,y,z);
|
return top()->GetDestination(x,y,z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5149,9 +5149,9 @@ void ObjectMgr::LoadAccessRequirements()
|
|||||||
|
|
||||||
uint32 count = 0;
|
uint32 count = 0;
|
||||||
|
|
||||||
// 0 1 2 3 4 5 6 7 8 9 10
|
// 0 1 2 3 4 5 6 7 8 9 10
|
||||||
QueryResult *result = WorldDatabase.Query("SELECT id, level_min, level_max, item, item2, heroic_key, heroic_key2, quest_done, quest_failed_text, heroic_quest_done, heroic_quest_failed_text FROM access_requirement");
|
QueryResult *result = WorldDatabase.Query("SELECT id, level_min, level_max, item, item2, heroic_key, heroic_key2, quest_done, quest_failed_text, heroic_quest_done, heroic_quest_failed_text FROM access_requirement");
|
||||||
if( !result )
|
if( !result )
|
||||||
{
|
{
|
||||||
|
|
||||||
barGoLink bar( 1 );
|
barGoLink bar( 1 );
|
||||||
@@ -5228,15 +5228,15 @@ void ObjectMgr::LoadAccessRequirements()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ar.heroicQuest)
|
if(ar.heroicQuest)
|
||||||
{
|
{
|
||||||
QuestMap::iterator qReqItr = mQuestTemplates.find(ar.heroicQuest);
|
QuestMap::iterator qReqItr = mQuestTemplates.find(ar.heroicQuest);
|
||||||
if(qReqItr == mQuestTemplates.end())
|
if(qReqItr == mQuestTemplates.end())
|
||||||
{
|
{
|
||||||
sLog.outErrorDb("Required Heroic Quest %u not exist for trigger %u, remove heroic quest done requirement.",ar.heroicQuest,requiremt_ID);
|
sLog.outErrorDb("Required Heroic Quest %u not exist for trigger %u, remove heroic quest done requirement.",ar.heroicQuest,requiremt_ID);
|
||||||
ar.heroicQuest = 0;
|
ar.heroicQuest = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ar.quest)
|
if(ar.quest)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -15524,7 +15524,7 @@ bool Player::Satisfy(AccessRequirement const *ar, uint32 target_map, bool report
|
|||||||
missingItem = ar->item2;
|
missingItem = ar->item2;
|
||||||
|
|
||||||
uint32 missingKey = 0;
|
uint32 missingKey = 0;
|
||||||
uint32 missingHeroicQuest = 0;
|
uint32 missingHeroicQuest = 0;
|
||||||
if(GetDifficulty() == DIFFICULTY_HEROIC)
|
if(GetDifficulty() == DIFFICULTY_HEROIC)
|
||||||
{
|
{
|
||||||
if(ar->heroicKey)
|
if(ar->heroicKey)
|
||||||
@@ -15536,7 +15536,7 @@ bool Player::Satisfy(AccessRequirement const *ar, uint32 target_map, bool report
|
|||||||
else if(ar->heroicKey2 && !HasItemCount(ar->heroicKey2, 1))
|
else if(ar->heroicKey2 && !HasItemCount(ar->heroicKey2, 1))
|
||||||
missingKey = ar->heroicKey2;
|
missingKey = ar->heroicKey2;
|
||||||
|
|
||||||
if(ar->heroicQuest && !GetQuestRewardStatus(ar->heroicQuest))
|
if(ar->heroicQuest && !GetQuestRewardStatus(ar->heroicQuest))
|
||||||
missingHeroicQuest = ar->heroicQuest;
|
missingHeroicQuest = ar->heroicQuest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -784,7 +784,7 @@ struct AccessRequirement
|
|||||||
uint32 heroicKey2;
|
uint32 heroicKey2;
|
||||||
uint32 quest;
|
uint32 quest;
|
||||||
std::string questFailedText;
|
std::string questFailedText;
|
||||||
uint32 heroicQuest;
|
uint32 heroicQuest;
|
||||||
std::string heroicQuestFailedText;
|
std::string heroicQuestFailedText;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -117,10 +117,10 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Call for creature group update
|
//Call for creature group update
|
||||||
if(creature.GetFormation() && creature.GetFormation()->getLeader() == &creature)
|
if(creature.GetFormation() && creature.GetFormation()->getLeader() == &creature)
|
||||||
{
|
{
|
||||||
creature.GetFormation()->LeaderMoveTo(nx, ny, nz);
|
creature.GetFormation()->LeaderMoveTo(nx, ny, nz);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ void SocialMgr::GetFriendInfo(Player *player, uint32 friendGUID, FriendInfo &fri
|
|||||||
Player *pFriend = ObjectAccessor::FindPlayer(friendGUID);
|
Player *pFriend = ObjectAccessor::FindPlayer(friendGUID);
|
||||||
|
|
||||||
if(!pFriend)
|
if(!pFriend)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 team = player->GetTeam();
|
uint32 team = player->GetTeam();
|
||||||
uint32 security = player->GetSession()->GetSecurity();
|
uint32 security = player->GetSession()->GetSecurity();
|
||||||
|
|||||||
@@ -1340,13 +1340,13 @@ void Spell::EffectDummy(uint32 i)
|
|||||||
m_caster->CastCustomSpell(m_caster,34846,&chargeBasePoints0,NULL,NULL,true);
|
m_caster->CastCustomSpell(m_caster,34846,&chargeBasePoints0,NULL,NULL,true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//Slam
|
//Slam
|
||||||
if(m_spellInfo->SpellFamilyFlags[0] & 0x200000 && m_spellInfo->SpellIconID == 559)
|
if(m_spellInfo->SpellFamilyFlags[0] & 0x200000 && m_spellInfo->SpellIconID == 559)
|
||||||
{
|
{
|
||||||
int32 bp0 = damage;
|
int32 bp0 = damage;
|
||||||
m_caster->CastCustomSpell(unitTarget, 50783, &bp0, NULL, NULL, true, 0);
|
m_caster->CastCustomSpell(unitTarget, 50783, &bp0, NULL, NULL, true, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Execute
|
// Execute
|
||||||
if(m_spellInfo->SpellFamilyFlags[0] & 0x20000000)
|
if(m_spellInfo->SpellFamilyFlags[0] & 0x20000000)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2326,7 +2326,7 @@ void SpellMgr::LoadSpellCustomAttr()
|
|||||||
case 45027: // Revitalize
|
case 45027: // Revitalize
|
||||||
case 45976: // Muru Portal Channel
|
case 45976: // Muru Portal Channel
|
||||||
case 39365: // Thundering Storm
|
case 39365: // Thundering Storm
|
||||||
case 41071: // Raise Dead (HACK)
|
case 41071: // Raise Dead (HACK)
|
||||||
spellInfo->MaxAffectedTargets = 1;
|
spellInfo->MaxAffectedTargets = 1;
|
||||||
break;
|
break;
|
||||||
case 41376: // Spite
|
case 41376: // Spite
|
||||||
|
|||||||
+4
-4
@@ -9544,10 +9544,10 @@ void Unit::CombatStart(Unit* target)
|
|||||||
{
|
{
|
||||||
((Creature*)target)->AI()->AttackStart(this);
|
((Creature*)target)->AI()->AttackStart(this);
|
||||||
if(((Creature*)target)->GetFormation())
|
if(((Creature*)target)->GetFormation())
|
||||||
{
|
{
|
||||||
((Creature*)target)->GetFormation()->MemberAttackStart((Creature*)target, this);
|
((Creature*)target)->GetFormation()->MemberAttackStart((Creature*)target, this);
|
||||||
sLog.outDebug("Unit::CombatStart() calls CreatureGroups::MemberHasAttacked(this);");
|
sLog.outDebug("Unit::CombatStart() calls CreatureGroups::MemberHasAttacked(this);");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SetInCombatWith(target);
|
SetInCombatWith(target);
|
||||||
|
|||||||
@@ -53,9 +53,9 @@ void WaypointMovementGenerator<Creature>::MovementInform(Creature &unit)
|
|||||||
template<>
|
template<>
|
||||||
bool WaypointMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z) const
|
bool WaypointMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z) const
|
||||||
{
|
{
|
||||||
if(i_destinationHolder.HasArrived())
|
if(i_destinationHolder.HasArrived())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
i_destinationHolder.GetDestination(x, y, z);
|
i_destinationHolder.GetDestination(x, y, z);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -112,7 +112,7 @@ WaypointMovementGenerator<Creature>::Initialize(Creature &u)
|
|||||||
i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime());
|
i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime());
|
||||||
|
|
||||||
//Call for creature group update
|
//Call for creature group update
|
||||||
if(u.GetFormation() && u.GetFormation()->getLeader() == &u)
|
if(u.GetFormation() && u.GetFormation()->getLeader() == &u)
|
||||||
u.GetFormation()->LeaderMoveTo(node->x, node->y, node->z);
|
u.GetFormation()->LeaderMoveTo(node->x, node->y, node->z);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -187,7 +187,7 @@ WaypointMovementGenerator<Creature>::Update(Creature &unit, const uint32 &diff)
|
|||||||
i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime());
|
i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime());
|
||||||
|
|
||||||
//Call for creature group update
|
//Call for creature group update
|
||||||
if(unit.GetFormation() && unit.GetFormation()->getLeader() == &unit)
|
if(unit.GetFormation() && unit.GetFormation()->getLeader() == &unit)
|
||||||
unit.GetFormation()->LeaderMoveTo(node->x, node->y, node->z);
|
unit.GetFormation()->LeaderMoveTo(node->x, node->y, node->z);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
+11
-11
@@ -1526,17 +1526,17 @@ void World::SetInitialWorldSettings()
|
|||||||
sLog.outString("Initialize AuctionHouseBot...");
|
sLog.outString("Initialize AuctionHouseBot...");
|
||||||
AuctionHouseBotInit();
|
AuctionHouseBotInit();
|
||||||
|
|
||||||
// possibly enable db logging; avoid massive startup spam by doing it here.
|
// possibly enable db logging; avoid massive startup spam by doing it here.
|
||||||
if (sLog.GetLogDBLater())
|
if (sLog.GetLogDBLater())
|
||||||
{
|
{
|
||||||
sLog.outString("Enabling database logging...");
|
sLog.outString("Enabling database logging...");
|
||||||
sLog.SetLogDBLater(false);
|
sLog.SetLogDBLater(false);
|
||||||
sLog.SetLogDB(true);
|
sLog.SetLogDB(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sLog.SetLogDBLater(false);
|
sLog.SetLogDBLater(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
sLog.outString( "WORLD: World initialized" );
|
sLog.outString( "WORLD: World initialized" );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user