Core: Fix some codestyle

This commit is contained in:
Vincent_Michael
2012-12-25 02:56:19 +01:00
parent fa5f2b4c60
commit 6e921feebd
4 changed files with 7 additions and 8 deletions
+2 -3
View File
@@ -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);
+1 -1
View File
@@ -22,7 +22,7 @@
#include "Define.h"
#include "DatabaseEnv.h"
#include "SharedDefines.h"
#include "DBCEnums.h"
#include "DBCEnums.h"
#include <string>
#include <vector>
+1 -1
View File
@@ -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)