*Fix the bug that many talents lose one point.
--HG-- branch : trunk
This commit is contained in:
1 parent
c81299e653
commit
253f4bf374
5 files changed
+28
-12
No files matched your search
+7
-8
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user