mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[142] Implement worgen transformations
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
parent
0dd98c1e8d
commit
9a00d62017
7 changed files with 34 additions and 5 deletions
|
|
@ -3390,7 +3390,17 @@ void Spell::cast(bool skipCheck)
|
|||
else if (m_spellInfo->Id == 20594)
|
||||
AddTriggeredSpell(65116); // Stoneskin - armor 10% for 8 sec
|
||||
else if (m_spellInfo->Id == 68992) // Darkflight
|
||||
{
|
||||
AddPrecastSpell(96223); // Run Speed Marker
|
||||
AddPrecastSpell(97709); // Altered Form
|
||||
}
|
||||
else if (m_spellInfo->Id == 68996) // Two Forms
|
||||
{
|
||||
if (m_caster->IsInWorgenForm())
|
||||
m_caster->RemoveSpellsCausingAura(SPELL_AURA_WORGEN_TRANSFORM);
|
||||
else
|
||||
AddPrecastSpell(97709); // Altered Form
|
||||
}
|
||||
// Chaos Bane strength buff
|
||||
else if (m_spellInfo->Id == 71904)
|
||||
AddTriggeredSpell(73422);
|
||||
|
|
@ -5665,6 +5675,11 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||
if (m_caster->IsInWater())
|
||||
return SPELL_FAILED_ONLY_ABOVEWATER;
|
||||
}
|
||||
else if (m_spellInfo->Id == 68996) // Two forms
|
||||
{
|
||||
if (m_caster->isInCombat())
|
||||
return SPELL_FAILED_AFFECTING_COMBAT;
|
||||
}
|
||||
else if (m_spellInfo->SpellIconID == 156) // Holy Shock
|
||||
{
|
||||
// spell different for friends and enemies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue