Spellforce-Spell-framework
Toggle main menu visibility
Loading...
Searching...
No Matches
sf_utility_hooks.c
Go to the documentation of this file.
1
2
#include "
../sf_wrappers.h
"
3
#include "
../sf_hooks.h
"
4
12
13
14
15
bool
__thiscall
is_combat_ability
(
SF_CGdSpell
*_this,
GdSpellLine
spell_line)
16
{
17
return
hasSpellTag
(spell_line,
SpellTag::COMBAT_ABILITY_SPELL
);
18
}
19
20
bool
__thiscall
is_domination_spell
(
SF_CGdSpell
*_this,
GdSpellLine
spell_line)
21
{
22
return
hasSpellTag
(spell_line,
SpellTag::DOMINATION_SPELL
);
23
}
24
25
bool
__thiscall
is_domination_spell
(
SF_CGdSpell
*_this, uint16_t spell_index)
26
{
27
uint16_t spell_line =
spellAPI
.getSpellLine(_this, spell_index);
28
return
hasSpellTag
(spell_line,
SpellTag::DOMINATION_SPELL
);
29
}
30
31
bool
__thiscall
is_domination_spellline
(
SF_CGdSpell
*_this,
32
GdSpellLine
spell_line)
33
{
34
return
hasSpellTag
(spell_line,
SpellTag::DOMINATION_SPELL
);
35
}
36
37
38
bool
__thiscall
is_summon_spellline
(
SF_CGdSpell
*_this,
GdSpellLine
spell_line)
39
{
40
return
hasSpellTag
(spell_line,
SpellTag::SUMMON_SPELL
);
41
}
42
43
bool
__thiscall
is_white_aura_spell
(
SF_CGdSpell
*_this,
GdSpellLine
spell_line)
44
{
45
return
hasSpellTag
(spell_line,
SpellTag::WHITE_AURA_SPELL
);
46
}
47
48
bool
__thiscall
is_black_aura_spell
(
SF_CGdSpell
*_this,
GdSpellLine
spell_line)
49
{
50
return
hasSpellTag
(spell_line,
SpellTag::BLACK_AURA_SPELL
);
51
}
52
53
bool
__thiscall
is_aoe_spell
(
SF_CGdSpell
*_this,
GdSpellLine
spell_line)
54
{
55
return
hasSpellTag
(spell_line,
SpellTag::AOE_SPELL
);
56
}
57
58
bool
__thiscall
is_aura_spell
(
SF_CGdSpell
*_this,
GdSpellLine
spell_line)
59
{
60
return
hasSpellTag
(spell_line,
SpellTag::AURA_SPELL
);
61
}
62
63
spellAPI
SpellFunctions * spellAPI
Definition
TestMod.cpp:11
is_summon_spellline
bool __thiscall is_summon_spellline(SF_CGdSpell *_this, GdSpellLine spell_line)
Definition
sf_utility_hooks.c:38
is_white_aura_spell
bool __thiscall is_white_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
Definition
sf_utility_hooks.c:43
is_aura_spell
bool __thiscall is_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
Definition
sf_utility_hooks.c:58
is_combat_ability
bool __thiscall is_combat_ability(SF_CGdSpell *_this, GdSpellLine spell_line)
Definition
sf_utility_hooks.c:15
is_domination_spell
bool __thiscall is_domination_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
Definition
sf_utility_hooks.c:20
is_aoe_spell
bool __thiscall is_aoe_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
Definition
sf_utility_hooks.c:53
is_domination_spellline
bool __thiscall is_domination_spellline(SF_CGdSpell *_this, GdSpellLine spell_line)
Definition
sf_utility_hooks.c:31
is_black_aura_spell
bool __thiscall is_black_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
Definition
sf_utility_hooks.c:48
hasSpellTag
bool __thiscall hasSpellTag(uint16_t spell_id, SpellTag tag)
Definition
sf_wrappers.c:235
WHITE_AURA_SPELL
@ WHITE_AURA_SPELL
Definition
sf_general_structures.h:835
AURA_SPELL
@ AURA_SPELL
Definition
sf_general_structures.h:841
AOE_SPELL
@ AOE_SPELL
Definition
sf_general_structures.h:839
BLACK_AURA_SPELL
@ BLACK_AURA_SPELL
Definition
sf_general_structures.h:836
SUMMON_SPELL
@ SUMMON_SPELL
Definition
sf_general_structures.h:832
DOMINATION_SPELL
@ DOMINATION_SPELL
Definition
sf_general_structures.h:833
COMBAT_ABILITY_SPELL
@ COMBAT_ABILITY_SPELL
Definition
sf_general_structures.h:838
GdSpellLine
GdSpellLine
Definition
sf_general_structures.h:52
sf_hooks.h
sf_wrappers.h
SF_CGdSpell
Definition
sf_spell_structures.h:26
src
internal
core
hooks
sf_utility_hooks.c
Generated by
1.17.0