Spellforce-Spell-framework
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
15bool __thiscall is_combat_ability(SF_CGdSpell *_this, GdSpellLine spell_line)
16{
18}
19
20bool __thiscall is_domination_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
21{
22 return hasSpellTag(spell_line, SpellTag::DOMINATION_SPELL);
23}
24
25bool __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
31bool __thiscall is_domination_spellline(SF_CGdSpell *_this,
32 GdSpellLine spell_line)
33{
34 return hasSpellTag(spell_line, SpellTag::DOMINATION_SPELL);
35}
36
37
38bool __thiscall is_summon_spellline(SF_CGdSpell *_this, GdSpellLine spell_line)
39{
40 return hasSpellTag(spell_line, SpellTag::SUMMON_SPELL);
41}
42
43bool __thiscall is_white_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
44{
45 return hasSpellTag(spell_line, SpellTag::WHITE_AURA_SPELL);
46}
47
48bool __thiscall is_black_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
49{
50 return hasSpellTag(spell_line, SpellTag::BLACK_AURA_SPELL);
51}
52
53bool __thiscall is_aoe_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
54{
55 return hasSpellTag(spell_line, SpellTag::AOE_SPELL);
56}
57
58bool __thiscall is_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
59{
60 return hasSpellTag(spell_line, SpellTag::AURA_SPELL);
61}
62
63
SpellFunctions * spellAPI
Definition TestMod.cpp:11
bool __thiscall is_summon_spellline(SF_CGdSpell *_this, GdSpellLine spell_line)
bool __thiscall is_white_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
bool __thiscall is_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
bool __thiscall is_combat_ability(SF_CGdSpell *_this, GdSpellLine spell_line)
bool __thiscall is_domination_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
bool __thiscall is_aoe_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
bool __thiscall is_domination_spellline(SF_CGdSpell *_this, GdSpellLine spell_line)
bool __thiscall is_black_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
bool __thiscall hasSpellTag(uint16_t spell_id, SpellTag tag)
@ WHITE_AURA_SPELL
@ BLACK_AURA_SPELL
@ DOMINATION_SPELL
@ COMBAT_ABILITY_SPELL