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
13bool __thiscall is_combat_ability(SF_CGdSpell *_this, GdSpellLine spell_line)
14{
16}
17
18bool __thiscall is_domination_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
19{
20 return hasSpellTag(spell_line, SpellTag::DOMINATION_SPELL);
21}
22
23bool __thiscall is_domination_spell(SF_CGdSpell *_this, uint16_t spell_index)
24{
25 uint16_t spell_line = spellAPI.getSpellLine(_this, spell_index);
26 return hasSpellTag(spell_line, SpellTag::DOMINATION_SPELL);
27}
28
29bool __thiscall is_domination_spellline(SF_CGdSpell *_this,
30 GdSpellLine spell_line)
31{
32 return hasSpellTag(spell_line, SpellTag::DOMINATION_SPELL);
33}
34
35
36bool __thiscall is_summon_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
37{
38 return hasSpellTag(spell_line, SpellTag::SUMMON_SPELL);
39}
40
41bool __thiscall is_white_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
42{
43 return hasSpellTag(spell_line, SpellTag::WHITE_AURA_SPELL);
44}
45
46bool __thiscall is_black_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
47{
48 return hasSpellTag(spell_line, SpellTag::BLACK_AURA_SPELL);
49}
50
51bool __thiscall is_aoe_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
52{
53 return hasSpellTag(spell_line, SpellTag::AOE_SPELL);
54}
55
56bool __thiscall is_aura_spell(SF_CGdSpell *_this, GdSpellLine spell_line)
57{
58 return hasSpellTag(spell_line, SpellTag::AURA_SPELL);
59}
60
61
SpellFunctions * spellAPI
Definition TestMod.cpp:11
bool __thiscall is_summon_spell(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
getSpellLine_ptr getSpellLine
Retrieves the spell type ID of a given spell.