Core: Fix some codestyle
This commit is contained in:
@@ -17333,11 +17333,10 @@ void Unit::NearTeleportTo(float x, float y, float z, float orientation, bool cas
|
||||
|
||||
void Unit::SendTeleportPacket(Position& pos)
|
||||
{
|
||||
Position oldPos = {GetPositionX(), GetPositionY(), GetPositionZMinusOffset(), GetOrientation()};
|
||||
Position oldPos = { GetPositionX(), GetPositionY(), GetPositionZMinusOffset(), GetOrientation() };
|
||||
if (GetTypeId() == TYPEID_UNIT)
|
||||
{
|
||||
Relocate(&pos);
|
||||
}
|
||||
|
||||
WorldPacket data2(MSG_MOVE_TELEPORT, 38);
|
||||
data2.append(GetPackGUID());
|
||||
BuildMovementPacket(&data2);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "Define.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "DBCEnums.h"
|
||||
#include "DBCEnums.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -1546,7 +1546,7 @@ SpellCastResult SpellInfo::CheckTarget(Unit const* caster, WorldObject const* ta
|
||||
if (unitTarget->HasUnitState(UNIT_STATE_IN_FLIGHT))
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
/* TARGET_UNIT_MASTER gets blocked here for passengers, because the whole idea of this check is to
|
||||
/* TARGET_UNIT_MASTER gets blocked here for passengers, because the whole idea of this check is to
|
||||
not allow passengers to be implicitly hit by spells, however this target type should be an exception,
|
||||
if this is left it kills spells that award kill credit from vehicle to master (few spells),
|
||||
the use of these 2 covers passenger target check, logically, if vehicle cast this to master it should always hit
|
||||
|
||||
@@ -182,12 +182,12 @@ enum WyrmDefenderEnum
|
||||
// Quest data
|
||||
QUEST_DEFENDING_WYRMREST_TEMPLE = 12372,
|
||||
GOSSIP_TEXTID_DEF1 = 12899,
|
||||
|
||||
|
||||
// Gossip data
|
||||
GOSSIP_TEXTID_DEF2 = 12900,
|
||||
|
||||
// Spells data
|
||||
SPELL_CHARACTER_SCRIPT = 49213,
|
||||
SPELL_CHARACTER_SCRIPT = 49213,
|
||||
SPELL_DEFENDER_ON_LOW_HEALTH_EMOTE = 52421, // ID - 52421 Wyrmrest Defender: On Low Health Boss Emote to Controller - Random /self/
|
||||
SPELL_RENEW = 49263, // casted to heal drakes
|
||||
SPELL_WYRMREST_DEFENDER_MOUNT = 49256,
|
||||
@@ -258,7 +258,7 @@ class npc_wyrmrest_defender : public CreatureScript
|
||||
me->CastSpell(me, SPELL_DEFENDER_ON_LOW_HEALTH_EMOTE);
|
||||
hpWarningReady = false;
|
||||
}
|
||||
|
||||
|
||||
if (renewRecoveryCanCheck)
|
||||
{
|
||||
if (RenewRecoveryChecker <= diff)
|
||||
|
||||
Reference in New Issue
Block a user