mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
Fix some code porting discrepancies
This commit is contained in:
parent
f0febf526b
commit
00983174a5
19 changed files with 41 additions and 41 deletions
|
|
@ -19089,7 +19089,7 @@ void Player::ProhibitSpellSchool(SpellSchoolMask idSchoolMask, uint32 unTimeMs)
|
|||
WorldPacket data(SMSG_SPELL_COOLDOWN, 8 + 1 + m_spells.size() * 8);
|
||||
data << GetObjectGuid();
|
||||
data << uint8(0x0); // flags (0x1, 0x2)
|
||||
time_t curTime = time(nullptr);
|
||||
time_t curTime = time(NULL);
|
||||
for (PlayerSpellMap::const_iterator itr = m_spells.begin(); itr != m_spells.end(); ++itr)
|
||||
{
|
||||
if (itr->second.state == PLAYERSPELL_REMOVED)
|
||||
|
|
@ -21346,10 +21346,10 @@ void Player::Uncharm()
|
|||
charm->RemoveSpellsCausingAura(SPELL_AURA_MOD_POSSESS_PET);
|
||||
if (charm == GetMover())
|
||||
{
|
||||
SetMover(nullptr);
|
||||
SetMover(NULL);
|
||||
GetCamera().ResetView();
|
||||
RemoveSpellsCausingAura(SPELL_AURA_MOD_INVISIBILITY);
|
||||
SetCharm(nullptr);
|
||||
SetCharm(NULL);
|
||||
SetClientControl(this, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue