aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-24 11:20:23 -0600
committermegamage <none@none>2008-12-24 11:20:23 -0600
commit24a5af843f55a5632ecafef6b4fafc114b60b3a7 (patch)
tree0ab55bb888b09f2393b948b18a15987d0800b836 /src/game/Spell.cpp
parent184b82abccfff95b18bed81ded1b5a7e98d2dbd3 (diff)
parent4a917033c5da12c838d47bff6798434a1698655a (diff)
*Backout the patch committed by mistake.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index ffac28c7c58..b3930a85520 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1473,6 +1473,12 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
case TARGET_UNIT_PARTY_CASTER:
m_caster->GetPartyMember(TagUnitMap, radius);
break;
+ case TARGET_UNIT_RAID:
+ if(Unit *target = m_targets.getUnitTarget())
+ TagUnitMap.push_back(target);
+ else
+ m_caster->GetRaidMember(TagUnitMap, radius);
+ break;
}
}break;
@@ -1759,13 +1765,6 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
TagUnitMap.push_back(m_caster);
break;
}
-
- case TARGET_RANDOM_RAID_MEMBER:
- {
- if (m_caster->GetTypeId() == TYPEID_PLAYER)
- if(Player* target = ((Player*)m_caster)->GetNextRandomRaidMember(radius))
- TagUnitMap.push_back(target);
- }break;
case TARGET_CHAIN_HEAL:
{
Unit* pUnitTarget = m_targets.getUnitTarget();
@@ -3914,7 +3913,7 @@ uint8 Spell::CanCast(bool strict)
SkillValue = 0;
// add the damage modifier from the spell casted (cheat lock / skeleton key etc.) (use m_currentBasePoints, CalculateDamage returns wrong value)
- SkillValue += m_currentBasePoints[i]+1;
+ SkillValue += m_currentBasePoints[i]/*+1*/;
// get the required lock value
int32 ReqValue=0;