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:
ratkosrb
2018-06-01 04:34:00 +03:00
committed by GitHub
parent 3f47bea56f
commit adaf27ba68
27 changed files with 743 additions and 40 deletions
+4
View File
@@ -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;