Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SpellMovementMetadata.cpp
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
7#include "SharedDefines.h"
8
9namespace Skyfire
10{
11namespace Spells
12{
13 namespace
14 {
15 JumpDestOverride const JumpDestOverrides[] =
16 {
17 { 108938, 10.0f, 20.0f, 20.0f }
18 };
19
20 TeleportPostEffect const TeleportPostEffects[] =
21 {
22 { 23442, TELEPORT_POST_EFFECT_EVERLOOK_RIPPER, 0, 119 },
25 };
26
27 uint32 GetTeamTransformSpellId(uint32 team)
28 {
29 return team == ALLIANCE ? 36897 : 36899;
30 }
31 }
32
34 {
35 for (JumpDestOverride const& jumpDestOverride : JumpDestOverrides)
36 if (jumpDestOverride.SpellId == spellId)
37 return &jumpDestOverride;
38
39 return nullptr;
40 }
41
43 {
44 for (TeleportPostEffect const& teleportPostEffect : TeleportPostEffects)
45 if (teleportPostEffect.SpellId == spellId)
46 return &teleportPostEffect;
47
48 return nullptr;
49 }
50
52 {
53 if (roll < 70)
54 return 0;
55
56 if (roll < 100)
57 return 23445;
58
59 return 23449;
60 }
61
63 {
64 switch (randomEffect)
65 {
66 case 1:
67 return 36900;
68 case 2:
69 return 36901;
70 case 3:
71 return 36895;
72 case 4:
73 return 36893;
74 case 5:
75 return GetTeamTransformSpellId(team);
76 case 6:
77 return 36940;
78 case 7:
79 return 23445;
80 default:
81 break;
82 }
83
84 return 0;
85 }
86
88 {
89 switch (randomEffect)
90 {
91 case 1:
92 return 36900;
93 case 2:
94 return 36901;
95 case 3:
96 return 36895;
97 case 4:
98 return GetTeamTransformSpellId(team);
99 default:
100 break;
101 }
102
103 return 0;
104 }
105
107 {
108 return 8690;
109 }
110}
111}
std::uint32_t uint32
Definition Define.h:77
@ ALLIANCE
uint32 GetStuckHearthstoneCooldownSpellId()
uint32 GetArea52RipperPostEffectSpellId(uint32 randomEffect, uint32 team)
uint32 GetToshleysTransporterPostEffectSpellId(uint32 randomEffect, uint32 team)
JumpDestOverride const * GetJumpDestOverride(uint32 spellId)
uint32 GetEverlookRipperPostEffectSpellId(uint32 roll)
TeleportPostEffect const * GetTeleportPostEffect(uint32 spellId)