refactor(Scripts/Northrend): code cleanup (part 11) (#7103)

This commit is contained in:
Francesco Borzì
2021-08-07 17:48:57 +02:00
committed by GitHub
parent 160dc0784e
commit 0dfab5d69b
28 changed files with 101 additions and 134 deletions

View File

@@ -491,9 +491,9 @@ public:
continue;
Position plrpos;
float angle = CenterPos.GetAngle(pPlayer);
plrpos.m_positionX = CenterPos.GetPositionX() + cos(angle) * 5.0f;
plrpos.m_positionY = CenterPos.GetPositionY() + sin(angle) * 5.0f;
float playerAngle = CenterPos.GetAngle(pPlayer);
plrpos.m_positionX = CenterPos.GetPositionX() + cos(playerAngle) * 5.0f;
plrpos.m_positionY = CenterPos.GetPositionY() + sin(playerAngle) * 5.0f;
plrpos.m_positionZ = CenterPos.GetPositionZ() + 18.0f;
plrpos.m_orientation = plrpos.GetAngle(&CenterPos);

View File

@@ -3,7 +3,6 @@
*/
#include "nexus.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
@@ -43,7 +42,7 @@ enum Events
enum Misc
{
NPC_CRYSTAL_SPIKE = 27099,
NPC_CRYSTALLINE_TANGLER = 32665,
// NPC_CRYSTALLINE_TANGLER = 32665,
GO_CRYSTAL_SPIKE = 188537
};

View File

@@ -23,7 +23,7 @@ enum Spells
};
#define SPELL_EMPOWERED_ARCANE_EXPLOSION DUNGEON_MODE(SPELL_EMPOWERED_ARCANE_EXPLOSION_N, SPELL_EMPOWERED_ARCANE_EXPLOSION_H)
#define SPELL_TIME_BOMB DUNGEON_MODE(SPELL_TIME_BOMB_N, SPELL_TIME_BOMB_H)
//#define SPELL_TIME_BOMB DUNGEON_MODE(SPELL_TIME_BOMB_N, SPELL_TIME_BOMB_H)
enum UromNPCs
{

View File

@@ -184,7 +184,7 @@ public:
openedMenu[player->GetGUID()] = true;
}
if (openedMenu[player->GetGUID()] != true)
if (!openedMenu[player->GetGUID()])
{
AddGossipItemFor(player, 9708, 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);
SendGossipMenuFor(player, GOSSIP_TEXTID_DRAKES, creature->GetGUID());