rev c06dc7d // newest DB
spells:
Infected Worgen Bite : 53094
Worgen's Call : 53095
Situation:
You get three stacks of Infected Worgen Bite, but you don't get transformed into a worgen.
How it should be:
After 3 stacks, the aura 53094 should be removed and therefore you get the aura 53095.
proof:
By dreadblood (14,112 – 3·12·124) on 2009/08/25 (Patch 3.2.0)
personally i like to get the 3 debuffs to become a worgen.. its fun :)
http://www.wowhead.com/spell=53095#comments (first)
I tried this, but it does not work.
class spell_worgens_call : public SpellScriptLoader
{
public:
spell_worgens_call() : SpellScriptLoader("spell_worgens_call") { }
class spell_worgens_call_SpellScript : public SpellScript
{
public:
PrepareSpellScript(spell_worgens_call_SpellScript)
uint32 worgen;
bool Load()
{
worgen = sSpellMgr->GetSpellIdForDifficulty(SPELL_WORGEN_BITE, GetCaster());
if (!sSpellMgr->GetSpellInfo(worgen))
return false;
return true;
}
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
{
if (Unit* target = GetHitUnit())
{
if (Aura* pAura = target->GetAura(worgen))
{
if (pAura->GetStackAmount() >= 3)
{
if (target->GetDummyAuraEffect(SPELLFAMILY_GENERIC, 2206, EFFECT_1))
target->CastSpell(target, SPELL_WORGEN_CALL, true);
target->RemoveAurasDueToSpell(worgen);
}
}
}
}
void Register()
{
OnEffectHitTarget += SpellEffectFn(spell_worgens_call_SpellScript::HandleScriptEffect, EFFECT_1, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
SpellScript* GetSpellScript() const
{
return new spell_worgens_call_SpellScript();
}
};
rev c06dc7d // newest DB
spells:
Infected Worgen Bite : 53094
Worgen's Call : 53095
Situation:
You get three stacks of Infected Worgen Bite, but you don't get transformed into a worgen.
How it should be:
After 3 stacks, the aura 53094 should be removed and therefore you get the aura 53095.
proof:
By dreadblood (14,112 – 3·12·124) on 2009/08/25 (Patch 3.2.0)
personally i like to get the 3 debuffs to become a worgen.. its fun :)
http://www.wowhead.com/spell=53095#comments (first)
I tried this, but it does not work.
class spell_worgens_call : public SpellScriptLoader { public: spell_worgens_call() : SpellScriptLoader("spell_worgens_call") { } class spell_worgens_call_SpellScript : public SpellScript { public: PrepareSpellScript(spell_worgens_call_SpellScript) uint32 worgen; bool Load() { worgen = sSpellMgr->GetSpellIdForDifficulty(SPELL_WORGEN_BITE, GetCaster()); if (!sSpellMgr->GetSpellInfo(worgen)) return false; return true; } void HandleScriptEffect(SpellEffIndex /*effIndex*/) { if (Unit* target = GetHitUnit()) { if (Aura* pAura = target->GetAura(worgen)) { if (pAura->GetStackAmount() >= 3) { if (target->GetDummyAuraEffect(SPELLFAMILY_GENERIC, 2206, EFFECT_1)) target->CastSpell(target, SPELL_WORGEN_CALL, true); target->RemoveAurasDueToSpell(worgen); } } } } void Register() { OnEffectHitTarget += SpellEffectFn(spell_worgens_call_SpellScript::HandleScriptEffect, EFFECT_1, SPELL_EFFECT_SCRIPT_EFFECT); } }; SpellScript* GetSpellScript() const { return new spell_worgens_call_SpellScript(); } };