Core: Fix some codestyle
This commit is contained in:
@@ -3113,7 +3113,7 @@ void Player::GiveLevel(uint8 level)
|
||||
if (sWorld->getBoolConfig(CONFIG_ALWAYS_MAXSKILL)) // Max weapon skill when leveling up
|
||||
UpdateSkillsToMaxSkillsForLevel();
|
||||
|
||||
_ApplyAllLevelScaleItemMods(true); // Moved to above SetFullHealth so player will have full health from Heirlooms
|
||||
_ApplyAllLevelScaleItemMods(true); // Moved to above SetFullHealth so player will have full health from Heirlooms
|
||||
|
||||
// set current level health and mana/energy to maximum after applying all mods.
|
||||
SetFullHealth();
|
||||
|
||||
@@ -16669,10 +16669,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()};
|
||||
|
||||
|
||||
if (GetTypeId() == TYPEID_UNIT)
|
||||
Relocate(&pos);
|
||||
|
||||
|
||||
ObjectGuid guid = GetGUID();
|
||||
ObjectGuid transGuid = GetTransGUID();
|
||||
|
||||
@@ -16731,7 +16731,7 @@ void Unit::SendTeleportPacket(Position& pos)
|
||||
Relocate(&pos);
|
||||
else
|
||||
Relocate(&oldPos);
|
||||
|
||||
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -1579,7 +1579,7 @@ class Unit : public WorldObject
|
||||
void SendSpellDamageImmune(Unit* target, uint32 spellId);
|
||||
|
||||
void NearTeleportTo(float x, float y, float z, float orientation, bool casting = false);
|
||||
void SendTeleportPacket(Position& oldPos);
|
||||
void SendTeleportPacket(Position& pos);
|
||||
virtual bool UpdatePosition(float x, float y, float z, float ang, bool teleport = false);
|
||||
// returns true if unit's position really changed
|
||||
bool UpdatePosition(const Position &pos, bool teleport = false) { return UpdatePosition(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), teleport); }
|
||||
|
||||
@@ -1680,7 +1680,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