Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[12512] Implement some spells for Felmyst encounter
Spell entries: 45714, 45717 and 45918. Limit targets of spell 45391 Also add stacking exception for auras 45068 and 45582
- Loading branch information
Showing
4 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7650,6 +7650,22 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) | |
m_caster->SetDisplayId(display_id); | ||
return; | ||
} | ||
case 45714: // Fog of Corruption (caster inform) | ||
{ | ||
if (!unitTarget || m_caster->GetTypeId() != TYPEID_PLAYER) | ||
return; | ||
|
||
unitTarget->CastSpell(m_caster, m_spellInfo->CalculateSimpleValue(eff_idx), true); | ||
return; | ||
} | ||
case 45717: // Fog of Corruption (player buff) | ||
{ | ||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) | ||
return; | ||
|
||
unitTarget->CastSpell(unitTarget, 45726, true); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
xfurry
Author
Member
|
||
return; | ||
} | ||
case 45785: // Sinister Reflection Clone | ||
{ | ||
if (!unitTarget) | ||
|
@@ -7676,6 +7692,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) | |
unitTarget->CastSpell(unitTarget, 45891, true, NULL, NULL, m_caster->GetObjectGuid()); | ||
return; | ||
} | ||
case 45918: // Soul Sever | ||
{ | ||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER || !unitTarget->HasAura(45717)) | ||
return; | ||
|
||
// kill all charmed targets | ||
unitTarget->CastSpell(unitTarget, 45917, true); | ||
return; | ||
} | ||
case 45958: // Signal Alliance | ||
{ | ||
// "escort" aura not present, so let nothing happen | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef __REVISION_NR_H__ | ||
#define __REVISION_NR_H__ | ||
#define REVISION_NR "12511" | ||
#define REVISION_NR "12512" | ||
#endif // __REVISION_NR_H__ |
this spell has infinite duration, need handle it's removal