diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-11-23 00:19:43 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-11-23 00:19:43 +0100 |
| commit | faab5afaf4f30d9e28d4b0843c3f5e1d561b97df (patch) | |
| tree | d59a4399f79f2950e4d23024d475dffcef5c4f5f /src/server/scripts/EasternKingdoms | |
| parent | b1ab5b7d624d337ae421fe8da536f6958ac5fa08 (diff) | |
Scripts/Misc: Replace manual jumps with proper spells (or non-jump movement where there should be no jumps)
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/zone_silverpine_forest.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/server/scripts/EasternKingdoms/zone_silverpine_forest.cpp b/src/server/scripts/EasternKingdoms/zone_silverpine_forest.cpp index 9d587ec5f94..8f8dbf85d5c 100644 --- a/src/server/scripts/EasternKingdoms/zone_silverpine_forest.cpp +++ b/src/server/scripts/EasternKingdoms/zone_silverpine_forest.cpp @@ -1617,8 +1617,6 @@ struct go_silverpine_abandoned_outhouse : public GameObjectAI Position const YorickReadyPosition = { 1313.7f, 1211.99f, 58.5f, 4.564474f }; -Position const YorickDeathPosition = { 1295.52f, 1206.58f, 58.501f }; - enum DeathstalkerRaneYorick { PHASE_WAITING_TO_EXSANGUINATE = 265, @@ -1822,7 +1820,6 @@ struct npc_silverpine_deathstalker_rane_yorick : public ScriptedAI } case EVENT_RANE_LAST_MOVE: - me->GetMotionMaster()->MoveJump(YorickDeathPosition, 10.0f, 10.0f); DoCastSelf(SPELL_PERMANENT_FEIGN_DEATH); _events.ScheduleEvent(EVENT_RANE_LAST_MOVE + 1, 2s); break; @@ -3937,7 +3934,6 @@ struct npc_silverpine_skitterweb_matriarch : public ScriptedAI void JustAppeared() override { me->SetDisableGravity(true); - me->SetHover(true); _lurkingOnCeilingPos = me->GetPosition(); @@ -3953,16 +3949,9 @@ struct npc_silverpine_skitterweb_matriarch : public ScriptedAI void JustReachedHome() override { - me->SetDisableGravity(true); - me->SetHover(true); - - me->CastSpell(nullptr, SPELL_SKITTERWEB, true); - - me->SetAIAnimKitId(ANIMKIT_MATRIARCH_HANGING_BY_WEB); - - me->GetMotionMaster()->MoveJump(_lurkingOnCeilingPos, 8.0f, 8.0f); + me->SetFacingTo(0.820305f); - _events.ScheduleEvent(EVENT_RESET_POSITION, 1s + 500ms); + _events.ScheduleEvent(EVENT_RESET_POSITION, 1s); } void JustSummoned(Creature* summon) override @@ -3993,13 +3982,11 @@ struct npc_silverpine_skitterweb_matriarch : public ScriptedAI { case EVENT_MATRIARCH_AGGRO: me->SetDisableGravity(false); - me->SetHover(false); me->GetMotionMaster()->MoveFall(); _events.ScheduleEvent(EVENT_MATRIARCH_AGGRO + 1, 1s); break; case EVENT_MATRIARCH_AGGRO + 1: - me->PlayOneShotAnimKitId(ANIMKIT_MATRIARCH_INTERACT); me->CastStop(); me->SetHomePosition(me->GetPosition()); _events.ScheduleEvent(EVENT_MATRIARCH_AGGRO + 2, 1s + 500ms); @@ -4011,8 +3998,10 @@ struct npc_silverpine_skitterweb_matriarch : public ScriptedAI break; case EVENT_RESET_POSITION: - me->SetFacingTo(0.820305f); + me->SetDisableGravity(true); + me->NearTeleportTo(_lurkingOnCeilingPos); me->SetHomePosition(me->GetPosition()); + me->CastSpell(nullptr, SPELL_SKITTERWEB, true); me->SetAIAnimKitId(ANIMKIT_MATRIARCH_LURKING_ON_CEILING); break; |
