Core/Misc: Fix typo
Fix typos about the word "Resurrect"
This commit is contained in:
@@ -54,7 +54,7 @@ Battlefield::Battlefield()
|
||||
|
||||
m_uiKickAfkPlayersTimer = 1000;
|
||||
|
||||
m_LastResurectTimer = 30 * IN_MILLISECONDS;
|
||||
m_LastResurrectTimer = 30 * IN_MILLISECONDS;
|
||||
m_StartGroupingTimer = 0;
|
||||
m_StartGrouping = false;
|
||||
StalkerGuid = 0;
|
||||
@@ -184,15 +184,15 @@ bool Battlefield::Update(uint32 diff)
|
||||
}
|
||||
|
||||
|
||||
if (m_LastResurectTimer <= diff)
|
||||
if (m_LastResurrectTimer <= diff)
|
||||
{
|
||||
for (uint8 i = 0; i < m_GraveyardList.size(); i++)
|
||||
if (GetGraveyardById(i))
|
||||
m_GraveyardList[i]->Resurrect();
|
||||
m_LastResurectTimer = RESURRECTION_INTERVAL;
|
||||
m_LastResurrectTimer = RESURRECTION_INTERVAL;
|
||||
}
|
||||
else
|
||||
m_LastResurectTimer -= diff;
|
||||
m_LastResurrectTimer -= diff;
|
||||
|
||||
return objective_changed;
|
||||
}
|
||||
@@ -632,7 +632,7 @@ void Battlefield::RemovePlayerFromResurrectQueue(uint64 playerGuid)
|
||||
void Battlefield::SendAreaSpiritHealerQueryOpcode(Player* player, uint64 guid)
|
||||
{
|
||||
WorldPacket data(SMSG_AREA_SPIRIT_HEALER_TIME, 12);
|
||||
uint32 time = m_LastResurectTimer; // resurrect every 30 seconds
|
||||
uint32 time = m_LastResurrectTimer; // resurrect every 30 seconds
|
||||
|
||||
data << guid << time;
|
||||
ASSERT(player && player->GetSession());
|
||||
@@ -711,7 +711,7 @@ void BfGraveyard::Resurrect()
|
||||
if (Creature* spirit = m_Bf->GetCreature(m_SpiritGuide[m_ControlTeam]))
|
||||
spirit->CastSpell(spirit, SPELL_SPIRIT_HEAL, true);
|
||||
|
||||
// Resurect player
|
||||
// Resurrect player
|
||||
player->CastSpell(player, SPELL_RESURRECTION_VISUAL, true);
|
||||
player->ResurrectPlayer(1.0f);
|
||||
player->CastSpell(player, 6962, true);
|
||||
|
||||
@@ -173,7 +173,7 @@ class BfGraveyard
|
||||
// Check if this graveyard has a spirit guide
|
||||
bool HasNpc(uint64 guid);
|
||||
|
||||
// Check if a player is in this graveyard's ressurect queue
|
||||
// Check if a player is in this graveyard's resurrect queue
|
||||
bool HasPlayer(uint64 guid) { return m_ResurrectQueue.find(guid) != m_ResurrectQueue.end(); }
|
||||
|
||||
// Get the graveyard's ID.
|
||||
@@ -383,7 +383,7 @@ class Battlefield : public ZoneScript
|
||||
|
||||
// Graveyard variables
|
||||
GraveyardVect m_GraveyardList; // Vector witch contain the different GY of the battle
|
||||
uint32 m_LastResurectTimer; // Timer for resurect player every 30 sec
|
||||
uint32 m_LastResurrectTimer; // Timer for resurrect player every 30 sec
|
||||
|
||||
uint32 m_StartGroupingTimer; // Timer for invite players in area 15 minute before start battle
|
||||
bool m_StartGrouping; // bool for know if all players in area has been invited
|
||||
|
||||
@@ -269,7 +269,7 @@ void Battleground::Update(uint32 diff)
|
||||
}
|
||||
else
|
||||
{
|
||||
_ProcessRessurect(diff);
|
||||
_ProcessResurrect(diff);
|
||||
if (sBattlegroundMgr->GetPrematureFinishTime() && (GetPlayersCountByTeam(ALLIANCE) < GetMinPlayersPerTeam() || GetPlayersCountByTeam(HORDE) < GetMinPlayersPerTeam()))
|
||||
_ProcessProgress(diff);
|
||||
else if (m_PrematureCountDown)
|
||||
@@ -334,10 +334,10 @@ inline void Battleground::_ProcessOfflineQueue()
|
||||
}
|
||||
}
|
||||
|
||||
inline void Battleground::_ProcessRessurect(uint32 diff)
|
||||
inline void Battleground::_ProcessResurrect(uint32 diff)
|
||||
{
|
||||
// *********************************************************
|
||||
// *** BATTLEGROUND RESSURECTION SYSTEM ***
|
||||
// *** BATTLEGROUND RESURRECTION SYSTEM ***
|
||||
// *********************************************************
|
||||
// this should be handled by spell system
|
||||
m_LastResurrectTime += diff;
|
||||
|
||||
@@ -556,7 +556,7 @@ class Battleground
|
||||
Player* _GetPlayerForTeam(uint32 teamId, BattlegroundPlayerMap::const_iterator itr, const char* context) const;
|
||||
|
||||
void _ProcessOfflineQueue();
|
||||
void _ProcessRessurect(uint32 diff);
|
||||
void _ProcessResurrect(uint32 diff);
|
||||
void _ProcessProgress(uint32 diff);
|
||||
void _ProcessLeave(uint32 diff);
|
||||
void _ProcessJoin(uint32 diff);
|
||||
|
||||
@@ -23927,7 +23927,7 @@ uint32 Player::GetBaseWeaponSkillValue (WeaponAttackType attType) const
|
||||
return GetBaseSkillValue(skill);
|
||||
}
|
||||
|
||||
void Player::ResurectUsingRequestData()
|
||||
void Player::ResurrectUsingRequestData()
|
||||
{
|
||||
/// Teleport before resurrecting by player, otherwise the player might get attacked from creatures near his corpse
|
||||
TeleportTo(m_resurrectMap, m_resurrectX, m_resurrectY, m_resurrectZ, GetOrientation());
|
||||
|
||||
@@ -1654,9 +1654,9 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void setResurrectRequestData(uint64 guid, uint32 mapId, float X, float Y, float Z, uint32 health, uint32 mana);
|
||||
void clearResurrectRequestData() { setResurrectRequestData(0, 0, 0.0f, 0.0f, 0.0f, 0, 0); }
|
||||
bool isRessurectRequestedBy(uint64 guid) const { return m_resurrectGUID == guid; }
|
||||
bool isRessurectRequested() const { return m_resurrectGUID != 0; }
|
||||
void ResurectUsingRequestData();
|
||||
bool isResurrectRequestedBy(uint64 guid) const { return m_resurrectGUID == guid; }
|
||||
bool isResurrectRequested() const { return m_resurrectGUID != 0; }
|
||||
void ResurrectUsingRequestData();
|
||||
|
||||
uint8 getCinematic() { return m_cinematic; }
|
||||
void setCinematic(uint8 cine) { m_cinematic = cine; }
|
||||
|
||||
@@ -793,10 +793,10 @@ void WorldSession::HandleResurrectResponseOpcode(WorldPacket& recvData)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!GetPlayer()->isRessurectRequestedBy(guid))
|
||||
if (!GetPlayer()->isResurrectRequestedBy(guid))
|
||||
return;
|
||||
|
||||
GetPlayer()->ResurectUsingRequestData();
|
||||
GetPlayer()->ResurrectUsingRequestData();
|
||||
}
|
||||
|
||||
void WorldSession::SendAreaTriggerMessage(const char* Text, ...)
|
||||
|
||||
@@ -1129,7 +1129,7 @@ enum SpellCustomErrors
|
||||
SPELL_CUSTOM_ERROR_95 = 95, // ""
|
||||
SPELL_CUSTOM_ERROR_MAX_NUMBER_OF_RECRUITS = 96, // You already have the max number of recruits.
|
||||
SPELL_CUSTOM_ERROR_MAX_NUMBER_OF_VOLUNTEERS = 97, // You already have the max number of volunteers.
|
||||
SPELL_CUSTOM_ERROR_FROSTMOURNE_RENDERED_RESSURECT = 98, // Frostmourne has rendered you unable to ressurect.
|
||||
SPELL_CUSTOM_ERROR_FROSTMOURNE_RENDERED_RESURRECT = 98, // Frostmourne has rendered you unable to resurrect.
|
||||
SPELL_CUSTOM_ERROR_CANT_MOUNT_WITH_SHAPESHIFT = 99 // You can't mount while affected by that shapeshift.
|
||||
};
|
||||
|
||||
|
||||
@@ -4188,7 +4188,7 @@ void Spell::SendChannelStart(uint32 duration)
|
||||
|
||||
void Spell::SendResurrectRequest(Player* target)
|
||||
{
|
||||
// get ressurector name for creature resurrections, otherwise packet will be not accepted
|
||||
// get resurrector name for creature resurrections, otherwise packet will be not accepted
|
||||
// for player resurrections the name is looked up by guid
|
||||
std::string const sentName(m_caster->GetTypeId() == TYPEID_PLAYER
|
||||
? ""
|
||||
|
||||
@@ -259,7 +259,7 @@ void Spell::EffectResurrectNew(SpellEffIndex effIndex)
|
||||
|
||||
Player* target = unitTarget->ToPlayer();
|
||||
|
||||
if (target->isRessurectRequested()) // already have one active request
|
||||
if (target->isResurrectRequested()) // already have one active request
|
||||
return;
|
||||
|
||||
uint32 health = damage;
|
||||
@@ -4542,7 +4542,7 @@ void Spell::EffectResurrect(SpellEffIndex effIndex)
|
||||
|
||||
Player* target = unitTarget->ToPlayer();
|
||||
|
||||
if (target->isRessurectRequested()) // already have one active request
|
||||
if (target->isResurrectRequested()) // already have one active request
|
||||
return;
|
||||
|
||||
uint32 health = target->CountPctFromMaxHealth(damage);
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
FlyBackTimer = 4500;
|
||||
break;
|
||||
case 2:
|
||||
if (!player->isRessurectRequested())
|
||||
if (!player->isResurrectRequested())
|
||||
{
|
||||
me->HandleEmoteCommand(EMOTE_ONESHOT_CUSTOM_SPELL_01);
|
||||
DoCast(player, SPELL_REVIVE, true);
|
||||
|
||||
@@ -33,12 +33,12 @@ enum Says
|
||||
//Mograine says
|
||||
SAY_MO_AGGRO = 0,
|
||||
SAY_MO_KILL = 1,
|
||||
SAY_MO_RESSURECTED = 2,
|
||||
SAY_MO_RESURRECTED = 2,
|
||||
|
||||
//Whitemane says
|
||||
SAY_WH_INTRO = 0,
|
||||
SAY_WH_KILL = 1,
|
||||
SAY_WH_RESSURECT = 2,
|
||||
SAY_WH_RESURRECT = 2,
|
||||
};
|
||||
|
||||
enum Spells
|
||||
@@ -157,10 +157,10 @@ public:
|
||||
|
||||
void SpellHit(Unit* /*who*/, const SpellInfo* spell) override
|
||||
{
|
||||
//When hit with ressurection say text
|
||||
//When hit with resurrection say text
|
||||
if (spell->Id == SPELL_SCARLETRESURRECTION)
|
||||
{
|
||||
Talk(SAY_MO_RESSURECTED);
|
||||
Talk(SAY_MO_RESURRECTED);
|
||||
_bFakeDeath = false;
|
||||
|
||||
instance->SetData(TYPE_MOGRAINE_AND_WHITE_EVENT, SPECIAL);
|
||||
@@ -174,7 +174,7 @@ public:
|
||||
|
||||
if (_bHasDied && !_bHeal && instance->GetData(TYPE_MOGRAINE_AND_WHITE_EVENT) == SPECIAL)
|
||||
{
|
||||
//On ressurection, stop fake death and heal whitemane and resume fight
|
||||
//On resurrection, stop fake death and heal whitemane and resume fight
|
||||
if (Unit* Whitemane = ObjectAccessor::GetUnit(*me, instance->GetData64(DATA_WHITEMANE)))
|
||||
{
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
@@ -294,7 +294,7 @@ public:
|
||||
if (Creature* mograine = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_MOGRAINE)))
|
||||
{
|
||||
DoCast(mograine, SPELL_SCARLETRESURRECTION);
|
||||
Talk(SAY_WH_RESSURECT);
|
||||
Talk(SAY_WH_RESURRECT);
|
||||
_bCanResurrect = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user