mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22: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)
|
||||
{
|
||||
bool changedSpeed = false;
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(iter->first);
|
||||
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));
|
||||
|
||||
// speed higher than 300 replace it
|
||||
if (mountSpeed > 300)
|
||||
// speed higher than 280 replace it
|
||||
if (mountSpeed > 280)
|
||||
target->CastSpell(target, spellIdSpecial, true);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue