[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:
NoFantasy 2009-12-29 20:13:55 +01:00
parent 4f54e09134
commit 468295392d
3 changed files with 10 additions and 9 deletions

View file

@ -1313,21 +1313,22 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni
{
switch(m_spellInfo->Id)
{
case 33711: // Murmur's Touch
case 38794: // Murmur's Touch (h)
unMaxTargets = 1;
break;
case 28796: // Poison Bolt Volley
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
unMaxTargets = 3;
break;
case 30843: // Enfeeble
unMaxTargets = 5;
break;
case 54098: // Poison Bolt Volley (h)
case 54835: // Curse of the Plaguebringer (h)
unMaxTargets = 10;
break;
}
break;
}

View file

@ -7274,7 +7274,7 @@ void Aura::PeriodicDummyTick()
case 59858:
m_target->CastSpell(m_target, roll_chance_i(50) ? 50802 : 50803, true, NULL, this);
return;
case 50824:
case 50824: // Summon earthen dwarf
m_target->CastSpell(m_target, roll_chance_i(50) ? 50825 : 50826, true, NULL, this);
return;
// Exist more after, need add later

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9085"
#define REVISION_NR "9086"
#endif // __REVISION_NR_H__