Core/Players: 310% mounted speed is identified by riding skill 375, no need for a custom flag anymore.

This commit is contained in:
Shauren
2012-05-30 13:15:51 +02:00
parent 774f3cdc9b
commit 853f96217d
7 changed files with 23 additions and 75 deletions

View File

@@ -312,7 +312,7 @@ class spell_dru_swift_flight_passive : public SpellScriptLoader
void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
{
if (Player* caster = GetCaster()->ToPlayer())
if (caster->Has310Flyer(false))
if (caster->GetSkillValue(SKILL_RIDING) >= 375)
amount = 310;
}