Core/Spells: Fixed TARGET_UNIT_DRIVER selection and possible problems with Righteous Defense target count

This commit is contained in:
Shauren committed 2011-05-14 14:12:40 +02:00
1 parent 77a7d9a4df
commit a816cdd772
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -2370,7 +2370,7 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
break;
case TARGET_UNIT_DRIVER:
if (Unit * driver = m_targets.getUnitTarget())
if (driver->IsOnVehicle(driver))
if (driver->IsOnVehicle(m_caster))
AddUnitTarget(driver, i);
break;
default: