TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

[Bug]Omen of Clarity

Open Crysicle opened this issue 15 years ago • 24 comments

Sometimes when Omen of Clarity proces, you are unable to use the buff. For example a druid in cat form gets Clearcasting and has 0 energy at the moment and is trying to use the mangle ability. What will happen is that for a second it will look as if the ability is going to land but it just resets. So far i wasn't able to reproduce this bug since the proc chance is very low and happens quite rarely.

Clearcasting - http://old.wowhead.com/spell=16870

Core revision: 14b3ed91647b+ Database revision: TDB 335.11.42 Addons: AHbot & AC1

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Crysicle avatar Sep 17 '11 19:09 Crysicle

confirm same bug at rev: Hash: 25cec68193d9d017ac51cda5a49d0d75d2949077

ghost avatar Oct 15 '11 06:10 ghost

Confirmed as of f8e9dedbe5e4e0d311

Bluedragoness avatar Apr 08 '12 07:04 Bluedragoness

Still bugged in hash : fb787ae

ghost avatar Apr 25 '12 15:04 ghost

Druid Clearcasting (Possibly Feral Only) Clearcasting (Omen of Clarity) is right now a bit buggy. 10%~ of the times it procs, you'll get a bugged Clearcasting buff, which is quite huge considering how important the talent is.

When it bugs your spells will lighten up as if you got enough energy to cast them, but ur spell won't go off, no matter how many times you press the key.

I have yet to figure out exactly why it bugs, but it seems to be completely random.

Small video of the bug occurring: http://www.twitch.tv/embezzle/b/318289263 Bug happens at 0:19~

As you see in the video above, I gain the Clearcasting buff but the actual bonus effect of it bugs out.

JohnDeerexx avatar May 15 '12 16:05 JohnDeerexx

this seems to just be with kitties. energy cost maybeh?

Star-lion avatar May 15 '12 16:05 Star-lion

So far trying to replicate the issue outside of Cat form is futile, No success yet will test further, but is easily replicated in cat form. its trying to reward the energy, The buff appears, but rewards no effects, its almost totally visual at times.

JohnDeerexx avatar May 15 '12 17:05 JohnDeerexx

Does it with bear as well... Tried to mangle spam with the buff up... Did it in Boomkin and had the same issue... Happened in tree as well... I've spent hours recreating this bug across all forms even "Humanoid" form has the same issue.

Bluedragoness avatar May 16 '12 03:05 Bluedragoness

@Bluedragoness u could just use gm command. .aura 16870 and test any spell cast.

For me on 0b98656b2878e1a6f644e1cd8b7745370efc488b 16870 works fine on any spell. Test was done: .mod mana 1 & .mod energy 1 .aura 16870 and i can cast any aura, energy req spell.

Faq avatar Aug 05 '12 06:08 Faq

3 months old... really? Be careful we got an internet badass here :O /serious on: Probably resolved in one of the updates, I wouldn't know took a break from WoW. 

Can anyone else confirm this issue has been resolved? If confirmed on current revision please link the fix and close the ticket.

Bluedragoness avatar Aug 05 '12 06:08 Bluedragoness

It's not resolved sadly. Confirming bug on Core revision: Trinity Core 0b98656b2878+ Database revision: TDB 335.11.48

syphor64 avatar Aug 16 '12 20:08 syphor64

Bumping and reconfirming on: Core revision: Trinity Core 4e227314677b+ Database revision: TDB 335.49

syphor64 avatar Nov 06 '12 18:11 syphor64

confimed on 961aaf5

Lumber-Jack-2 avatar Sep 15 '14 21:09 Lumber-Jack-2

this issue can alway be reproduced if your ability is failcasted, while you have the cleancasting buff.

try to use Shred IN FRONT of a target while you have the cleancasting-buff and you will see, that the buff will have no function, because the effect were consumed, while you failed the spell.

nevertheless the buff still remains on you.

Lumber-Jack-2 avatar Sep 19 '14 23:09 Lumber-Jack-2

some modifications one this once: https://github.com/TrinityCore/TrinityCore/commit/37145b6203c5781856ca0546bd57798bbfcc8ab5 - but this does not affect Omen of Clarity

Lumber-Jack-2 avatar May 08 '15 07:05 Lumber-Jack-2

class spell_dru_omen_of_clarity_proc : public SpellScriptLoader
{
    public:
        spell_dru_omen_of_clarity_proc() : SpellScriptLoader("spell_dru_omen_of_clarity_proc") { }

        class spell_dru_omen_of_clarity_proc_AuraScript : public AuraScript
        {
            PrepareAuraScript(spell_dru_omen_of_clarity_proc_AuraScript);

            bool Check(ProcEventInfo& eventInfo)
            {
                if (eventInfo.GetSpellInfo())
                {
                    if (eventInfo.GetSpellInfo()->SpellIconID == 147)
                    {
                        if (Unit* owner = GetUnitOwner())
                            owner->RemoveAura(16870);
                        return false;
                    }                       
                }
                return true;
            }

            void OnProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
            {
                if (Unit* owner = GetUnitOwner())
                    owner->RemoveAura(16870);
            }

            void Register()
            {
                DoCheckProc += AuraCheckProcFn(spell_dru_omen_of_clarity_proc_AuraScript::Check);
                OnEffectProc += AuraEffectProcFn(spell_dru_omen_of_clarity_proc_AuraScript::OnProc, EFFECT_0, SPELL_AURA_ADD_PCT_MODIFIER);
            }
        };

        AuraScript* GetAuraScript() const
        {
            return new spell_dru_omen_of_clarity_proc_AuraScript();
        }
};

maybe sth like this - but the problem is still the same: the spell/buff is bugged if you used a spell while having GCD or while the spell is casted in front of the target (in the case of shred)

Lumber-Jack-2 avatar Jun 13 '15 13:06 Lumber-Jack-2

@Rushor Try this.

diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 4a9cc33..1019389 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -2900,6 +2900,14 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect const* triggered
             triggeredByAura->GetBase()->SetDuration(0);
         }

+        if (m_caster->GetTypeId() == TYPEID_PLAYER)
+        {
+            m_caster->ToPlayer()->RestoreSpellMods(this);
+            // cleanup after mod system
+            // triggered spell pointer can be not removed in some cases
+            m_caster->ToPlayer()->SetSpellModTakingSpell(this, false);
+        }
+
         SendCastResult(result);

         finish(false);

robinsch avatar Jun 13 '15 13:06 robinsch

YES, nice :) i hope it will not break something else but the problems mentioned in the startpost are solved with this

fucking amasing

Lumber-Jack-2 avatar Jun 13 '15 14:06 Lumber-Jack-2

I volunteer to create a PR for that diff, if you want me to do it (since robinsch does not have a TC fork). I think that a useful title for the PR would be: [3.3.5] Spells: Omen of Clarity Will also use the git command to set robinsch as the author and link the PR back to this issue, of course.

ghost avatar Jun 13 '15 17:06 ghost

go for it - but i can give detailed information on further cosequences of this fix in ~ 1 week

Lumber-Jack-2 avatar Jun 13 '15 17:06 Lumber-Jack-2

OK, I suppose we can work on that in the PR and that I could put [WIP] in the title.

ghost avatar Jun 13 '15 18:06 ghost