Jump to content

Sticky morph effects :)


Nevyn

Recommended Posts

Hi :)

When you have Halloween morph effects (e.g. "Bat Costume") you can't remove the effect by right clicking on the icon... and for a lot of time you can't cast and doing some of other actions.

Wonderful "Trick or Treat" :D

Sever log says:

Aura::TriggerSpell: Spell 28114 have 0 in EffectTriggered[0], not handled custom case?

PSDB WotLK (r340) for 3.3.5a (Core r10629 / SD2 r1845)

Thx :)

Link to comment
Share on other sites

than add a ugly exception in that function.

It isnt that ugly, cause there are already a few of them, anyway:

 src/game/SpellMgr.cpp |    7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 5aa713f..401f020 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -747,6 +747,13 @@ bool IsPositiveEffect(uint32 spellId, SpellEffectIndex effIndex)
                    return false;
                case SPELL_AURA_MOD_ROOT:
                case SPELL_AURA_MOD_SILENCE:
+					switch(spellproto->Id)
+                    {
+                        case 24732:                         // Bat Costume
+                            return true;
+                        default: break;
+                    }
+                    return false;
                case SPELL_AURA_GHOST:
                case SPELL_AURA_PERIODIC_LEECH:
                case SPELL_AURA_MOD_STALKED:

Link to comment
Share on other sites

than add a ugly exception in that function.

It isnt that ugly, cause there are already a few of them, anyway:

I know, I mean that to add an hardcode value rather than a "rule" is a bit ugly but for this case an execption as you posted it's the only way I can imagine to solve this and other similar problems with other spells :)

Link to comment
Share on other sites

Or do a complete rewrite, where every spell thats casted on groupmembers (in this case it only works on grpmembers) is a positive effect even if its silencing...

But this isnt necessary I think, a few exceptions are ok when they're commented and its clear what they do.

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