Permalink
Browse files

Core/Spells: Implemented Soul Link, and Feral Aggression.

thanks to Nevan.

Signed-off-by: bootz <bootz@projectskyfire.org>
  • Loading branch information...
1 parent bb1f5c1 commit a0ed673e0864445e2dc51ae820b98596de21a391 @Bootz Bootz committed Jul 13, 2012
Showing with 27 additions and 2 deletions.
  1. +27 −2 src/server/game/Spells/SpellEffects.cpp
@@ -1588,7 +1588,7 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
m_caster->CastCustomSpell(m_caster, 77535, &shield, NULL, NULL, false);
}
}
-
+
m_caster->CastCustomSpell(m_caster, 45470, &bp, NULL, NULL, false);
return;
}
@@ -1621,12 +1621,23 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
else
targets.SetDst(*m_caster);
- // Remove cooldown - summon spellls have category
+ // Remove cooldown - summon spells have category
m_caster->ToPlayer()->RemoveSpellCooldown(52150, true);
m_caster->ToPlayer()->RemoveSpellCooldown(46585, true);
break;
}
break;
+ case SPELLFAMILY_WARLOCK:
+ switch (m_spellInfo->Id)
+ {
+ case 19028: // Soul Link
+ {
+ if(Pet* pet = m_caster->ToPlayer()->GetPet())
+ pet->AddAura(25228, pet);
+ break;
+ }
+ }
+ break;
}
// spells triggered by dummy effect should not miss
@@ -1786,6 +1797,20 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
pet->CastSpell(pet, 28305, true);
return;
}
+ // Faerie Fire
+ case 91565:
+ {
+ // Feral Agression
+ if (AuraEffect const * aurEff = m_caster->GetDummyAuraEffect(SPELLFAMILY_DRUID, 960, 0))
+ {
+ uint8 count = uint8(aurEff->GetAmount() - 1);
+ while(count)
+ {
+ m_caster->CastSpell(unitTarget, 91565, true);
+ count--;
+ }
+ }
+ }
}
}

0 comments on commit a0ed673

Please sign in to comment.