mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19:37:01 +00:00
[9086] Limit maxTargets for spell 33711 and 38794
Also remove not strict required difficulty check for some spells and add lost comment from [9085] Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
4f54e09134
commit
468295392d
3 changed files with 10 additions and 9 deletions
|
|
@ -1313,21 +1313,22 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni
|
||||||
{
|
{
|
||||||
switch(m_spellInfo->Id)
|
switch(m_spellInfo->Id)
|
||||||
{
|
{
|
||||||
|
case 33711: // Murmur's Touch
|
||||||
|
case 38794: // Murmur's Touch (h)
|
||||||
|
unMaxTargets = 1;
|
||||||
|
break;
|
||||||
case 28796: // Poison Bolt Volley
|
case 28796: // Poison Bolt Volley
|
||||||
case 29213: // Curse of the Plaguebringer
|
case 29213: // Curse of the Plaguebringer
|
||||||
case 54098: // Poison Bolt Volley (h)
|
|
||||||
case 54835: // Curse of the Plaguebringer (h)
|
|
||||||
if (m_caster->GetMap()->GetDifficulty() != RAID_DIFFICULTY_25MAN_NORMAL && m_caster->GetMap()->GetDifficulty() != RAID_DIFFICULTY_25MAN_HEROIC)
|
|
||||||
unMaxTargets = 3;
|
|
||||||
else
|
|
||||||
unMaxTargets = 10;
|
|
||||||
break;
|
|
||||||
case 31298: // Sleep
|
case 31298: // Sleep
|
||||||
unMaxTargets = 3;
|
unMaxTargets = 3;
|
||||||
break;
|
break;
|
||||||
case 30843: // Enfeeble
|
case 30843: // Enfeeble
|
||||||
unMaxTargets = 5;
|
unMaxTargets = 5;
|
||||||
break;
|
break;
|
||||||
|
case 54098: // Poison Bolt Volley (h)
|
||||||
|
case 54835: // Curse of the Plaguebringer (h)
|
||||||
|
unMaxTargets = 10;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7274,7 +7274,7 @@ void Aura::PeriodicDummyTick()
|
||||||
case 59858:
|
case 59858:
|
||||||
m_target->CastSpell(m_target, roll_chance_i(50) ? 50802 : 50803, true, NULL, this);
|
m_target->CastSpell(m_target, roll_chance_i(50) ? 50802 : 50803, true, NULL, this);
|
||||||
return;
|
return;
|
||||||
case 50824:
|
case 50824: // Summon earthen dwarf
|
||||||
m_target->CastSpell(m_target, roll_chance_i(50) ? 50825 : 50826, true, NULL, this);
|
m_target->CastSpell(m_target, roll_chance_i(50) ? 50825 : 50826, true, NULL, this);
|
||||||
return;
|
return;
|
||||||
// Exist more after, need add later
|
// Exist more after, need add later
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9085"
|
#define REVISION_NR "9086"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue