[9884] Code style fixes thx to hunuza & Wowka321

This commit is contained in:
Laise 2010-05-12 17:42:25 +03:00
parent b208effca6
commit 188db9691f
3 changed files with 6 additions and 7 deletions

View file

@ -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;
}