Support for client build 1.11.2 (#112)
* Add support for the 1.11.2 client. * Fix some startup errors. * Fix all startup errors with 1.11 dbcs. * Fix SpellCastResult enum values. * Implement old spell haste handling. * Fix spell haste logic for 1.12. * Lethargy Root is grey in 1.12.
This commit is contained in:
@@ -8181,7 +8181,11 @@ void Spell::TriggerGlobalCooldown()
|
||||
if (gcd >= 1000 && gcd <= 1500)
|
||||
{
|
||||
// apply haste rating
|
||||
#if SUPPORTED_CLIENT_BUILD >= CLIENT_BUILD_1_12_1
|
||||
gcd = int32(float(gcd) * m_caster->GetFloatValue(UNIT_MOD_CAST_SPEED));
|
||||
#else
|
||||
gcd = int32(float(gcd) * (1.0f + m_caster->GetInt32Value(UNIT_MOD_CAST_SPEED)/100.0f));
|
||||
#endif
|
||||
|
||||
if (gcd < 1000)
|
||||
gcd = 1000;
|
||||
|
||||
Reference in New Issue
Block a user