Jump to content

[9487][typo?] Pet::addSpell


pasdVn

Recommended Posts

I think there is missing a parameter in function call. Without this, spells will be set as ACT_DISABLED in your Pet Action bar (you won't see these golden edges...^^), but in the next step added to m_autospells.

You will notice this bugfix, if you summon a temporary pet and the autocast state is displayed correcly (as saved the last time :)).

From 3cdec27d71add4d7aa235146f49200b0031d2404 Mon Sep 17 00:00:00 2001
From: pasdVn <[email protected]>
Date: Sat, 27 Feb 2010 16:01:46 +0100
Subject: [PATCH 1/2] Fixed autocast problem at temp.-pet loading.

* autocast edges should no be shown correctly at client
---
src/game/Pet.cpp |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index 7d89467..9127dc5 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -1395,7 +1395,7 @@ bool Pet::addSpell(uint32 spell_id,ActiveStates active /*= ACT_DECIDE*/, PetSpel
    if (IsPassiveSpell(spell_id))
        CastSpell(this, spell_id, true);
    else
-        m_charmInfo->AddSpellToActionBar(spell_id);
+        m_charmInfo->AddSpellToActionBar(spell_id, ActiveStates(newspell.active));

    if(newspell.active == ACT_ENABLED)
        ToggleAutocast(spell_id, true);
-- 
1.6.5.1.1367.gcd48

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use