fix(CI): revert sleep + fix shadowing variable issue (#9106)

This commit is contained in:
Francesco Borzì
2021-11-10 10:18:40 +01:00
committed by GitHub
parent 5223f040fb
commit 1cd8c43447
2 changed files with 6 additions and 6 deletions

View File

@@ -6,10 +6,6 @@ jobs:
triage:
runs-on: ubuntu-20.04
steps:
# This delay is necessary to correctly trigger builds on label application
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash
- uses: actions/labeler@v3
with:
repo-token: ${{ secrets.AC_GITHUB_TOKEN }}

View File

@@ -1246,10 +1246,14 @@ void Spell::SelectImplicitConeTargets(SpellEffIndex effIndex, SpellImplicitTarge
for (std::list<WorldObject*>::iterator itr = targets.begin(); itr != targets.end(); ++itr)
{
if (Unit* unitTarget = (*itr)->ToUnit())
AddUnitTarget(unitTarget, effMask, false);
if (Unit* unit = (*itr)->ToUnit())
{
AddUnitTarget(unit, effMask, false);
}
else if (GameObject* gObjTarget = (*itr)->ToGameObject())
{
AddGOTarget(gObjTarget, effMask);
}
}
}
}