Jump to content

[fixed] Shadowmourne Aura affect?


Guest SysGaming

Recommended Posts

ahh you must be refering to

// Item - Shadowmourne Legendary

case 71903:

{

if (!roll_chance_i(triggerAmount))

return false;

Aura *aur = GetAura(71905, EFFECT_INDEX_0);

if (aur && uint32(aur->GetStackAmount() + 1) >= aur->GetSpellProto()->StackAmount)

{

RemoveAurasDueToSpell(71905);

CastSpell(this, 71904, true); // Chaos Bane

return true;

}

else

Im not :P

Im refering the the VISUAL AFFECT --

This happens as you gain stacks and has two visual affects

http://www.wowhead.com/spell=72521

and

http://www.wowhead.com/spell=72523

Link to comment
Share on other sites

From what i can see its caused by;

if (apply)

{

if(GetStackAmount()== 1)

caster->AddAura(72521, caster); //add aura 1

if(GetStackAmount() == 6)

{

caster->RemoveAura(72521); //remove aura 1

caster->CastSpell(caster, 72523, false); //add aura 2

}

if(GetStackAmount() == 10) //final BOOM(Chaosbann)

{

caster->RemoveAura(72523); //remove aura 2

caster->RemoveAura(71905); //remove shards

caster->CastSpell(caster, 71904, false); //Chaosban-aoe

caster->CastSpell(caster, 73422, false); //Chaosban-buff

}

break;

}

if (!apply && aurApp->GetRemoveMode()!= AURA_REMOVE_BY_STACK)

{

caster->RemoveAura(72521); //remove aura 1

caster->RemoveAura(72523); //remove aura 2

}

But i have NO idea how to implement this into mangos o.O

Link to comment
Share on other sites

Sorry, just woke up so this might be completely bullshit, but seems to me this should work (or atleast partially)

// Item - Shadowmourne Legendary
case 71903:
{
  if (!roll_chance_i(triggerAmount))
     return false;

Aura *aur = GetAura(71905, EFFECT_INDEX_0);
--------------------------------------------------------------------------
if(GetStackAmount()== 1)
  caster->AddAura(72521, caster);

if(GetStackAmount() == 6)
{
     caster->RemoveAura(72521);
     caster->CastSpell(caster, 72523, false);
}
--------------------------------------------------------------------------
if (aur && uint32(aur->GetStackAmount() + 1) >= aur->GetSpellProto()->StackAmount)
{
     caster->RemoveAura(72523);
     RemoveAurasDueToSpell(71905);
     CastSpell(this, 71904, true); // Chaos Bane
     return true;
}

added part is between

--------------------------------------------------------------------------

don't try to use it, i know it's wrong but i need some caffeine before fixing it :P

Link to comment
Share on other sites

Darkruler did i ever tell you i love you? >.>

no you didn't :P

not tested this, but atleast it compiles

Aura *aur = GetAura(71905, EFFECT_INDEX_0);
+	if (aur && uint32(aur->GetStackAmount()) == 1)
+		CastSpell(this, 72521, false);       // First Effect
+					
+	if (aur && uint32(aur->GetStackAmount()) == 6)
+	{
+		RemoveAurasDueToSpell(72521);       // remove First Effect
+		CastSpell(this, 72523, false);       // Second Effect
+	}
if (aur && uint32(aur->GetStackAmount() + 1) >= aur->GetSpellProto()->StackAmount)
{
+		RemoveAurasDueToSpell(72523);       // remove Second Effect
	RemoveAurasDueToSpell(71905);       // remove Shards
	CastSpell(this, 71904, true);       // Chaos Bane
	return true;
}

This is the first time i write something for a spell, before this i've only made custom configs for various stuff, so i would appreciate it if someone more experienced can respond on this :P

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