- Included the fix for g3d to make it compile on FreeBSD

- Pulled in a patch from cmangos that fixed the spells being broken
This commit is contained in:
bels 2013-07-24 20:40:50 -04:00 committed by Antz
parent c410f30f65
commit 0759658736
3 changed files with 15 additions and 10 deletions

View file

@ -1895,12 +1895,11 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
{
if (Unit* pUnitTarget = m_caster->SelectMagnetTarget(m_targets.getUnitTarget(), this, effIndex))
{
if (m_targets.getUnitTarget() != pUnitTarget)
{
m_targets.setUnitTarget(pUnitTarget);
if (m_targets.getUnitTarget() && m_targets.getUnitTarget() != pUnitTarget)
m_spellFlags |= SPELL_FLAG_REDIRECTED;
targetUnitMap.push_back(pUnitTarget);
}
m_targets.setUnitTarget(pUnitTarget);
targetUnitMap.push_back(pUnitTarget);
}
}
else
@ -2462,11 +2461,9 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
{
if (Unit* pUnitTarget = m_caster->SelectMagnetTarget(m_targets.getUnitTarget(), this, effIndex))
{
if (m_targets.getUnitTarget() != pUnitTarget)
{
m_targets.setUnitTarget(pUnitTarget);
if (m_targets.getUnitTarget() && m_targets.getUnitTarget() != pUnitTarget)
m_spellFlags |= SPELL_FLAG_REDIRECTED;
}
targetUnitMap.push_back(pUnitTarget);
}
break;