mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7517] Add tick targets amount limitations to 48505 and ranks.
This commit is contained in:
parent
1d95ae7555
commit
b14bf188c5
2 changed files with 15 additions and 1 deletions
|
|
@ -1326,6 +1326,19 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
|
||||||
|
|
||||||
// Get spell max affected targets
|
// Get spell max affected targets
|
||||||
uint32 unMaxTargets = m_spellInfo->MaxAffectedTargets;
|
uint32 unMaxTargets = m_spellInfo->MaxAffectedTargets;
|
||||||
|
|
||||||
|
// custom target amount cases
|
||||||
|
switch(m_spellInfo->SpellFamilyName)
|
||||||
|
{
|
||||||
|
case SPELLFAMILY_DRUID:
|
||||||
|
// Starfall
|
||||||
|
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100LL)
|
||||||
|
unMaxTargets = 2;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
Unit::AuraList const& mod = m_caster->GetAurasByType(SPELL_AURA_MOD_MAX_AFFECTED_TARGETS);
|
Unit::AuraList const& mod = m_caster->GetAurasByType(SPELL_AURA_MOD_MAX_AFFECTED_TARGETS);
|
||||||
for(Unit::AuraList::const_iterator m = mod.begin(); m != mod.end(); ++m)
|
for(Unit::AuraList::const_iterator m = mod.begin(); m != mod.end(); ++m)
|
||||||
{
|
{
|
||||||
|
|
@ -1333,6 +1346,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
|
||||||
continue;
|
continue;
|
||||||
unMaxTargets+=(*m)->GetModifier()->m_amount;
|
unMaxTargets+=(*m)->GetModifier()->m_amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(cur)
|
switch(cur)
|
||||||
{
|
{
|
||||||
case TARGET_TOTEM_EARTH:
|
case TARGET_TOTEM_EARTH:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7516"
|
#define REVISION_NR "7517"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue