mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
*Fix broken damage and healing spells. Patch by Rognar.
--HG-- branch : trunk
This commit is contained in:
@@ -1565,7 +1565,6 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
|
||||
switch(cur)
|
||||
{
|
||||
case TARGET_UNIT_AREA_ENEMY_GROUND:
|
||||
case TARGET_UNIT_AREA_ENEMY_CHANNEL:
|
||||
m_targets.m_targetMask |= TARGET_FLAG_DEST_LOCATION;
|
||||
case TARGET_UNIT_AREA_ENEMY:
|
||||
SearchAreaTarget(TagUnitMap, radius, PUSH_DEST_CENTER, SPELL_TARGETS_AOE_DAMAGE);
|
||||
@@ -5317,7 +5316,7 @@ void Spell::CalculateDamageDoneForAllTargets()
|
||||
|
||||
for(std::list<TargetInfo>::iterator ihit= m_UniqueTargetInfo.begin(); ihit != m_UniqueTargetInfo.end(); ++ihit)
|
||||
{
|
||||
TargetInfo target = *ihit;
|
||||
TargetInfo &target = *ihit;
|
||||
|
||||
uint32 mask = target.effectMask;
|
||||
if(!mask)
|
||||
|
||||
Reference in New Issue
Block a user