fix(CI): trigger builds on C++ changes (#9103)

This commit is contained in:
Francesco Borzì
2021-11-10 10:08:52 +01:00
committed by GitHub
parent 7a5ec7807a
commit acf6aab247
3 changed files with 22 additions and 15 deletions

View File

@@ -1171,14 +1171,16 @@ void Spell::SelectImplicitNearbyTargets(SpellEffIndex effIndex, SpellImplicitTar
{
case TARGET_OBJECT_TYPE_UNIT:
{
if (Unit* unitTarget = target->ToUnit())
if (Unit* unit = target->ToUnit())
{
AddUnitTarget(unitTarget, effMask, true, false);
AddUnitTarget(unit, effMask, true, false);
// xinef: important! if channeling spell have nearby entry, it has no unitTarget by default
// and if channeled spell has target 77, it requires unitTarget, set it here!
// xinef: if we have NO unit target
if (!m_targets.GetUnitTarget())
m_targets.SetUnitTarget(unitTarget);
{
m_targets.SetUnitTarget(unit);
}
}
else
{