aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Kalimdor
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-02-24 15:52:09 -0300
committerfunjoker <funjoker109@gmail.com>2021-08-08 21:21:34 +0200
commita1a00f823e7e47e8cb652b71a839c1d0875a8f84 (patch)
treeddffcb6efbfed6d4d27d8dd9320e552365a34545 /src/server/scripts/Kalimdor
parent30f8adda86f0c4376595866607a2e03cc88406eb (diff)
Core/Entities: kill unused return value from Unit::HandleSpellClick
- AI hook will now receive the result by copy, as modifying it had no effect - Some renaming: result->spellClickHandled, clickPair is actually clickBounds, the clickPair is the pair <creatureID, SpellClickInfo> (cherry picked from commit 98d6258efdc07b53808ba6177e5427c65163bc0d)
Diffstat (limited to 'src/server/scripts/Kalimdor')
-rw-r--r--src/server/scripts/Kalimdor/zone_felwood.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Kalimdor/zone_felwood.cpp b/src/server/scripts/Kalimdor/zone_felwood.cpp
index f3aff8909f7..694b7e2f5e5 100644
--- a/src/server/scripts/Kalimdor/zone_felwood.cpp
+++ b/src/server/scripts/Kalimdor/zone_felwood.cpp
@@ -50,9 +50,9 @@ public:
lasherClicked = false;
}
- void OnSpellClick(Unit* clicker, bool& result) override
+ void OnSpellClick(Unit* clicker, bool spellClickHandled) override
{
- if (!result)
+ if (!spellClickHandled)
return;
if (roll_chance_i(CHANCE_HOSTILE))