mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11791] Implement spells 69048, 69051 and 69023
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
8d58bfe7ed
commit
0bb3a4c84d
5 changed files with 36 additions and 1 deletions
|
|
@ -1574,6 +1574,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
||||||
case 59870: // Glare of the Tribunal (h) (Halls of Stone)
|
case 59870: // Glare of the Tribunal (h) (Halls of Stone)
|
||||||
case 64218: // Overcharge
|
case 64218: // Overcharge
|
||||||
case 68950: // Fear
|
case 68950: // Fear
|
||||||
|
case 69048: // Mirrored Soul (FoS)
|
||||||
unMaxTargets = 1;
|
unMaxTargets = 1;
|
||||||
break;
|
break;
|
||||||
case 28542: // Life Drain
|
case 28542: // Life Drain
|
||||||
|
|
|
||||||
|
|
@ -7309,6 +7309,26 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
if (unitTarget)
|
if (unitTarget)
|
||||||
unitTarget->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(eff_idx), true);
|
unitTarget->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(eff_idx), true);
|
||||||
return;
|
return;
|
||||||
|
case 69048: // Mirrored Soul
|
||||||
|
{
|
||||||
|
if (!unitTarget)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// This is extremely strange!
|
||||||
|
// The spell should send MSG_CHANNEL_START, SMSG_SPELL_START
|
||||||
|
// However it has cast time 2s, but should send SMSG_SPELL_GO instantly.
|
||||||
|
m_caster->CastSpell(unitTarget, 69051, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
case 69051: // Mirrored Soul
|
||||||
|
{
|
||||||
|
if (!unitTarget)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Actually this spell should be sent with SMSG_SPELL_START
|
||||||
|
unitTarget->CastSpell(m_caster, 69023, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
case 69377: // Fortitude
|
case 69377: // Fortitude
|
||||||
{
|
{
|
||||||
if (!unitTarget)
|
if (!unitTarget)
|
||||||
|
|
|
||||||
|
|
@ -1915,6 +1915,11 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
|
||||||
if (spellInfo_1->SpellIconID == 2606 && spellInfo_2->SpellIconID == 2606)
|
if (spellInfo_1->SpellIconID == 2606 && spellInfo_2->SpellIconID == 2606)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Mirrored Soul (FoS - Devourer) - and other Boss spells
|
||||||
|
if (spellInfo_1->SpellIconID == 3176 && spellInfo_2->SpellIconID == 3176)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
|
||||||
// Brood Affliction: Bronze
|
// Brood Affliction: Bronze
|
||||||
if ((spellInfo_1->Id == 23170 && spellInfo_2->Id == 23171) ||
|
if ((spellInfo_1->Id == 23170 && spellInfo_2->Id == 23171) ||
|
||||||
(spellInfo_2->Id == 23170 && spellInfo_1->Id == 23171))
|
(spellInfo_2->Id == 23170 && spellInfo_1->Id == 23171))
|
||||||
|
|
|
||||||
|
|
@ -2977,6 +2977,15 @@ SpellAuraProcResult Unit::HandleProcTriggerSpellAuraProc(Unit *pVictim, uint32 d
|
||||||
if (GetStat(STAT_AGILITY) > stat) { trigger_spell_id = 67772; }
|
if (GetStat(STAT_AGILITY) > stat) { trigger_spell_id = 67772; }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 69023: // Mirrored Soul
|
||||||
|
{
|
||||||
|
int32 basepoints = (int32) (damage * 0.45f);
|
||||||
|
if (Unit* caster = triggeredByAura->GetCaster())
|
||||||
|
// Actually this spell should be sent with SMSG_SPELL_START
|
||||||
|
CastCustomSpell(caster, 69034, &basepoints, NULL, NULL, true, NULL, triggeredByAura, GetObjectGuid());
|
||||||
|
|
||||||
|
return SPELL_AURA_PROC_OK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SPELLFAMILY_MAGE:
|
case SPELLFAMILY_MAGE:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11790"
|
#define REVISION_NR "11791"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue