Core/Spells: Fixed TARGET_UNIT_DRIVER selection and possible problems with Righteous Defense target count
This commit is contained in:
1 parent
77a7d9a4df
commit
a816cdd772
2 files changed
+5
-4
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user