mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[12090] Implement some spells for AQ40
Dark Glare beam spells: 26137, 26009, 26136 and 26029 Server side spell: 26133
This commit is contained in:
parent
636afadf45
commit
5aef24e6f5
6 changed files with 45 additions and 10 deletions
|
|
@ -2482,8 +2482,13 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
break;
|
||||
case TARGET_IN_FRONT_OF_CASTER:
|
||||
{
|
||||
bool inFront = m_spellInfo->SpellVisual[0] != 3879;
|
||||
FillAreaTargets(targetUnitMap, radius, inFront ? PUSH_IN_FRONT : PUSH_IN_BACK, SPELL_TARGETS_AOE_DAMAGE);
|
||||
SpellNotifyPushType pushType = PUSH_IN_FRONT;
|
||||
switch (m_spellInfo->SpellVisual[0]) // Some spell require a different target fill
|
||||
{
|
||||
case 3879: pushType = PUSH_IN_BACK; break;
|
||||
case 7441: pushType = PUSH_IN_FRONT_15; break;
|
||||
}
|
||||
FillAreaTargets(targetUnitMap, radius, pushType, SPELL_TARGETS_AOE_DAMAGE);
|
||||
break;
|
||||
}
|
||||
case TARGET_LARGE_FRONTAL_CONE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue