Skip to content

Commit

Permalink
[9091] Add max targets limit for spell 34861 and ranks.
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also implement glyph 42396 work for referenced spells.
  • Loading branch information
NetSky authored and VladimirMangos committed Dec 31, 2009
1 parent 8394be8 commit 3f65790
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/game/Spell.cpp
Expand Up @@ -1332,6 +1332,16 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni
}
break;
}
case SPELLFAMILY_PRIEST:
if(m_spellInfo->SpellVisual[0] == 8253) // Circle of Healing
{
unMaxTargets = 5;

// Glyph of Circle of Healing
if(Aura const* glyph = m_caster->GetDummyAura(55675))
unMaxTargets += glyph->GetModifier()->m_amount;
}
break;
case SPELLFAMILY_DRUID:
{
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall
Expand Down
2 changes: 1 addition & 1 deletion src/game/SpellEffects.cpp
Expand Up @@ -1546,7 +1546,7 @@ void Spell::EffectDummy(uint32 i)
break;
case SPELLFAMILY_DRUID:
// Starfall
if (m_spellInfo->SpellFamilyFlags2 & UI64LIT(0x00000100))
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)
{
//Shapeshifting into an animal form or mounting cancels the effect.
if(m_caster->GetCreatureType() == CREATURE_TYPE_BEAST || m_caster->IsMounted())
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9090"
#define REVISION_NR "9091"
#endif // __REVISION_NR_H__

6 comments on commit 3f65790

@b482518
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Happy New Year!

@SeTM
Copy link

@SeTM SeTM commented on 3f65790 Jan 1, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need add to RaidOrPartyHealthPriorityTargets

@VladimirMangos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, maybe... I not see any comments how selected targets at well known wiki or head site

@Maxxie
Copy link

@Maxxie Maxxie commented on 3f65790 Jan 1, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's said here: http://www.wowwiki.com/Circle_of_Healing

The spell now works as a "smart heal", a recently implemented mechanic which sees the spell seek out raid members with the lowest health and heals them instead of its old mechanic of healing a specific targetted group.

@VladimirMangos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thank you :)

@VladimirMangos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In [9102] re-implemented

Please sign in to comment.