mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10478] Implement item 49623 visual effects.
Original patch provided by Darkruler.
This commit is contained in:
parent
f8c258608f
commit
6af66f1ae4
3 changed files with 39 additions and 13 deletions
|
|
@ -8289,14 +8289,33 @@ void SpellAuraHolder::HandleSpellSpecificBoosts(bool apply)
|
||||||
{
|
{
|
||||||
case SPELLFAMILY_GENERIC:
|
case SPELLFAMILY_GENERIC:
|
||||||
{
|
{
|
||||||
// Illusionary Barrier
|
switch(GetId())
|
||||||
if(GetId() == 57350 && !apply && m_target->getPowerType() == POWER_MANA)
|
|
||||||
{
|
{
|
||||||
cast_at_remove = true;
|
case 57350: // Illusionary Barrier
|
||||||
spellId1 = 60242; // Darkmoon Card: Illusion
|
{
|
||||||
|
if (!apply && m_target->getPowerType() == POWER_MANA)
|
||||||
|
{
|
||||||
|
cast_at_remove = true;
|
||||||
|
spellId1 = 60242; // Darkmoon Card: Illusion
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 71905: // Soul Fragment
|
||||||
|
{
|
||||||
|
if (!apply)
|
||||||
|
{
|
||||||
|
spellId1 = 72521; // Shadowmourne Visual Low
|
||||||
|
spellId2 = 72523; // Shadowmourne Visual High
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_MAGE:
|
case SPELLFAMILY_MAGE:
|
||||||
|
|
|
||||||
|
|
@ -959,16 +959,23 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura
|
||||||
if (!roll_chance_i(triggerAmount))
|
if (!roll_chance_i(triggerAmount))
|
||||||
return SPELL_AURA_PROC_FAILED;
|
return SPELL_AURA_PROC_FAILED;
|
||||||
|
|
||||||
SpellAuraHolder *aurHolder = GetSpellAuraHolder(71905);
|
triggered_spell_id = 71905; // Soul Fragment
|
||||||
if (aurHolder && uint32(aurHolder->GetStackAmount() + 1) >= aurHolder->GetSpellProto()->StackAmount)
|
|
||||||
|
SpellAuraHolder *aurHolder = GetSpellAuraHolder(triggered_spell_id);
|
||||||
|
|
||||||
|
// will added first to stack
|
||||||
|
if (!aurHolder)
|
||||||
|
CastSpell(this, 72521, true); // Shadowmourne Visual Low
|
||||||
|
// half stack
|
||||||
|
else if (aurHolder->GetStackAmount() + 1 == 6)
|
||||||
|
CastSpell(this, 72523, true); // Shadowmourne Visual High
|
||||||
|
// full stack
|
||||||
|
else if (aurHolder->GetStackAmount() + 1 >= aurHolder->GetSpellProto()->StackAmount)
|
||||||
{
|
{
|
||||||
RemoveAurasDueToSpell(71905);
|
RemoveAurasDueToSpell(triggered_spell_id);
|
||||||
CastSpell(this, 71904, true); // Chaos Bane
|
CastSpell(this, 71904, true); // Chaos Bane
|
||||||
return SPELL_AURA_PROC_OK;
|
return SPELL_AURA_PROC_OK;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
triggered_spell_id = 71905;
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10477"
|
#define REVISION_NR "10478"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue