[Bug]Omen of Clarity
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.
confirm same bug at rev: Hash: 25cec68193d9d017ac51cda5a49d0d75d2949077
Confirmed as of f8e9dedbe5e4e0d311
Still bugged in hash : fb787ae
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.
this seems to just be with kitties. energy cost maybeh?
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.
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 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.
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.
It's not resolved sadly. Confirming bug on Core revision: Trinity Core 0b98656b2878+ Database revision: TDB 335.11.48
Bumping and reconfirming on: Core revision: Trinity Core 4e227314677b+ Database revision: TDB 335.49
confimed on 961aaf5
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.
some modifications one this once: https://github.com/TrinityCore/TrinityCore/commit/37145b6203c5781856ca0546bd57798bbfcc8ab5 - but this does not affect Omen of Clarity
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)
@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);
YES, nice :) i hope it will not break something else but the problems mentioned in the startpost are solved with this
fucking amasing
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.
go for it - but i can give detailed information on further cosequences of this fix in ~ 1 week
OK, I suppose we can work on that in the PR and that I could put [WIP] in the title.