mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9884] Code style fixes thx to hunuza & Wowka321
This commit is contained in:
parent
b208effca6
commit
188db9691f
3 changed files with 6 additions and 7 deletions
|
|
@ -6556,7 +6556,6 @@ void Spell::SelectMountByAreaAndSkill(Unit* target, uint32 spellId75, uint32 spe
|
||||||
{
|
{
|
||||||
if (iter->second.state != PLAYERSPELL_REMOVED)
|
if (iter->second.state != PLAYERSPELL_REMOVED)
|
||||||
{
|
{
|
||||||
bool changedSpeed = false;
|
|
||||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(iter->first);
|
SpellEntry const *spellInfo = sSpellStore.LookupEntry(iter->first);
|
||||||
for(int i = 0; i < MAX_EFFECT_INDEX; ++i)
|
for(int i = 0; i < MAX_EFFECT_INDEX; ++i)
|
||||||
{
|
{
|
||||||
|
|
@ -6564,8 +6563,8 @@ void Spell::SelectMountByAreaAndSkill(Unit* target, uint32 spellId75, uint32 spe
|
||||||
{
|
{
|
||||||
int32 mountSpeed = spellInfo->CalculateSimpleValue(SpellEffectIndex(i));
|
int32 mountSpeed = spellInfo->CalculateSimpleValue(SpellEffectIndex(i));
|
||||||
|
|
||||||
// speed higher than 300 replace it
|
// speed higher than 280 replace it
|
||||||
if (mountSpeed > 300)
|
if (mountSpeed > 280)
|
||||||
target->CastSpell(target, spellIdSpecial, true);
|
target->CastSpell(target, spellIdSpecial, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2291,7 +2291,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
((Player*)m_target)->RemoveAmmo();
|
((Player*)m_target)->RemoveAmmo();
|
||||||
return;
|
return;
|
||||||
case 48025: // Headless Horseman's Mount
|
case 48025: // Headless Horseman's Mount
|
||||||
Spell::SelectMountByAreaAndSkill(m_target, 51621, 48024, 51617, 48023, NULL);
|
Spell::SelectMountByAreaAndSkill(m_target, 51621, 48024, 51617, 48023, 0);
|
||||||
return;
|
return;
|
||||||
case 62061: // Festive Holiday Mount
|
case 62061: // Festive Holiday Mount
|
||||||
if (m_target->HasAuraType(SPELL_AURA_MOUNTED))
|
if (m_target->HasAuraType(SPELL_AURA_MOUNTED))
|
||||||
|
|
@ -2309,10 +2309,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
((Player*)m_target)->removeSpell(63680);
|
((Player*)m_target)->removeSpell(63680);
|
||||||
return;
|
return;
|
||||||
case 72286: // Invincible
|
case 72286: // Invincible
|
||||||
Spell::SelectMountByAreaAndSkill(m_target, 72281, 72282, 72283, 72284, NULL);
|
Spell::SelectMountByAreaAndSkill(m_target, 72281, 72282, 72283, 72284, 0);
|
||||||
return;
|
return;
|
||||||
case 74856: // Blazing Hippogryph
|
case 74856: // Blazing Hippogryph
|
||||||
Spell::SelectMountByAreaAndSkill(m_target, NULL, NULL, 74854, 74855, NULL);
|
Spell::SelectMountByAreaAndSkill(m_target, 0, 0, 74854, 74855, 0);
|
||||||
return;
|
return;
|
||||||
case 75614: // Celestial Steed
|
case 75614: // Celestial Steed
|
||||||
Spell::SelectMountByAreaAndSkill(m_target, 75619, 75620, 75617, 75618, 76153);
|
Spell::SelectMountByAreaAndSkill(m_target, 75619, 75620, 75617, 75618, 76153);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9883"
|
#define REVISION_NR "9884"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue