Game Steep WoW Fun Server
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

[FIX] Freezing Arrow

Ir para baixo

[FIX] Freezing Arrow Empty [FIX] Freezing Arrow

Mensagem  Gøuki Ter Ago 25, 2009 7:29 pm

Código:
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index fb7bee8..eb12026 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2026,6 +2026,12 @@ void Spell::EffectTriggerMissileSpell(uint32 effect_idx)
        return;
    }
 
+    // Category cooldown exception
+    if(m_spellInfo->Category == spellInfo->Category &&
+        m_spellInfo->CategoryRecoveryTime == spellInfo->CategoryRecoveryTime &&
+      m_caster->GetTypeId() == TYPEID_PLAYER)
+        ((Player*)m_caster)->RemoveSpellCooldown(triggered_spell_id);
+
    if (m_CastItem)
        DEBUG_LOG("WORLD: cast Item spellId - %i", spellInfo->Id);

Gøuki
Administrador Geral

Mensagens : 22
Pontos : 5423
Reputação : 0
Data de inscrição : 12/08/2009

Ir para o topo Ir para baixo

Ir para o topo


 
Permissões neste sub-fórum
Não podes responder a tópicos