mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
refactor(Scripts/Northrend): code cleanup (part 11) (#7103)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user