aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOvahlord <Ovahlord@users.noreply.github.com>2018-06-11 20:24:08 +0200
committerKillyana <morphone1@gmail.com>2018-06-11 20:24:08 +0200
commita6f91c9b81baf68ce246ff8bdce1a3a2c340cc02 (patch)
treede21969de4843c3f96be32d16d8593efa903b48a
parent36ff7668823f56d81e422c4baeca43b8a32ba810 (diff)
Npc/Script: fixed Eye of Acherus action bar
Closes #18362
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp1
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 4bb997ef8e2..0b22fbfe0fa 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -9738,6 +9738,7 @@ void CharmInfo::InitPossessCreateSpells()
case 24783: // Trained Rock Falcon
case 27664: // Crashin' Thrashin' Racer
case 40281: // Crashin' Thrashin' Racer
+ case 28511: // Eye of Acherus
break;
default:
InitEmptyActionBar();
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
index 660ce19ac26..9c1ff991279 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
@@ -372,7 +372,10 @@ class npc_eye_of_acherus : public CreatureScript
{
me->SetDisplayId(me->GetCreatureTemplate()->Modelid1);
if (Player* owner = me->GetCharmerOrOwner()->ToPlayer())
+ {
+ me->GetCharmInfo()->InitPossessCreateSpells();
owner->SendAutoRepeatCancel(me);
+ }
me->SetReactState(REACT_PASSIVE);