mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
fix(CI): trigger builds on C++ changes (#9103)
This commit is contained in:
12
.github/workflows/labeler.yml
vendored
12
.github/workflows/labeler.yml
vendored
@@ -1,12 +0,0 @@
|
|||||||
name: "Pull Request Labeler"
|
|
||||||
on: [pull_request_target]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
triage:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/labeler@main
|
|
||||||
with:
|
|
||||||
repo-token: ${{ secrets.AC_GITHUB_TOKEN }}
|
|
||||||
configuration-path: .github/labeler.yml
|
|
||||||
sync-labels: true
|
|
||||||
17
.github/workflows/pr_labeler.yml
vendored
Normal file
17
.github/workflows/pr_labeler.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: Pull Request Labeler
|
||||||
|
on:
|
||||||
|
- pull_request_target
|
||||||
|
|
||||||
|
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 }}
|
||||||
|
configuration-path: .github/labeler.yml
|
||||||
|
sync-labels: true
|
||||||
@@ -1171,14 +1171,16 @@ void Spell::SelectImplicitNearbyTargets(SpellEffIndex effIndex, SpellImplicitTar
|
|||||||
{
|
{
|
||||||
case TARGET_OBJECT_TYPE_UNIT:
|
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
|
// 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!
|
// and if channeled spell has target 77, it requires unitTarget, set it here!
|
||||||
// xinef: if we have NO unit target
|
// xinef: if we have NO unit target
|
||||||
if (!m_targets.GetUnitTarget())
|
if (!m_targets.GetUnitTarget())
|
||||||
m_targets.SetUnitTarget(unitTarget);
|
{
|
||||||
|
m_targets.SetUnitTarget(unit);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user