18 uint16_t target_index =
25 target_index, spell_data.
params[0]);
35 uint16_t target_index =
42 target_index, spell_data.
params[2]);
53 uint16_t target_index =
60 target_index, spell_data.
params[0]);
70 uint16_t target_index =
77 target_index, spell_data.
params[0]);
87 uint16_t target_index =
102 uint16_t spell_index)
107 uint16_t target_index =
116 target_index, bonus);
126 uint16_t target_index =
135 target_index, bonus);
146 uint16_t target_index =
154 target_index, -spell_data.
params[0]);
162 uint16_t spell_index)
167 uint16_t target_index =
175 target_index, spell_data.
params[0]);
187 uint16_t target_index =
193 target_index, spell_data.
params[0]);
199 uint16_t spell_index)
204 uint16_t target_index =
210 target_index, spell_data.
params[0]);
220 uint16_t target_index =
228 target_index, bonus);
238 uint16_t target_index =
248 target_index, bonus);
256 uint16_t spell_index)
261 uint16_t target_index =
267 target_index, -spell_data.
params[0]);
277 uint16_t target_index =
283 target_index, -spell_data.
params[0]);
289 uint16_t spell_index)
294 uint16_t target_index =
304 target_index, bonus);
308 target_index, bonus);
315 uint16_t spell_index)
320 uint16_t target_index =
326 target_index, spell_data.
params[0]);
332 uint16_t spell_index)
337 uint16_t target_index =
343 target_index, spell_data.
params[0]);
349 uint16_t spell_index)
354 uint16_t target_index =
360 target_index, spell_data.
params[3]);
362 target_index, spell_data.
params[2]);
368 uint16_t spell_index)
373 uint16_t target_index =
379 target_index, -spell_data.
params[3]);
381 target_index, -spell_data.
params[2]);
391 uint16_t target_index =
398 uint16_t stat_value =
400 int8_t recalc_value = stat_value - ((bonus * stat_value) / 100);
402 target_index, recalc_value);
406 recalc_value = stat_value - ((bonus * stat_value) / 100);
408 target_index, recalc_value);
412 recalc_value = stat_value - ((bonus * stat_value) / 100);
414 target_index, recalc_value);
418 recalc_value = stat_value - ((bonus * stat_value) / 100);
420 target_index, recalc_value);
425 recalc_value = stat_value - ((bonus * stat_value) / 100);
427 target_index, recalc_value);
431 recalc_value = stat_value - ((bonus * stat_value) / 100);
433 target_index, recalc_value);
436 recalc_value = stat_value - ((bonus * stat_value) / 100);
438 target_index, recalc_value);
443 recalc_value = stat_value - ((bonus * stat_value) / 100);
445 target_index, recalc_value);
449 recalc_value = stat_value - ((bonus * stat_value) / 100);
451 target_index, recalc_value);
455 recalc_value = stat_value - ((bonus * stat_value) / 100);
457 target_index, recalc_value);
461 recalc_value = stat_value - ((bonus * stat_value) / 100);
463 target_index, recalc_value);
469 recalc_value = stat_value - ((bonus * stat_value) / 100);
476 recalc_value = stat_value - ((bonus * stat_value) / 100);
478 target_index, recalc_value);
482 recalc_value = stat_value - ((bonus * stat_value) / 100);
484 target_index, recalc_value);
494 uint16_t target_index =
502 target_index, bonus);
506 target_index, bonus);
510 target_index, bonus);
514 target_index, bonus);
523 uint16_t spell_index)
530 uint16_t spell_index)
537 uint16_t spell_index)
545 uint16_t spell_index)
561 uint16_t spell_index)
575 uint16_t spell_index)
587 uint16_t target_index =
593 target_index, spell_data.
params[1]);
595 target_index, spell_data.
params[1]);
605 uint16_t source_index =
607 if ((sf_figures->
figures[source_index].
owner != (uint16_t)(-1)) &&
618 if (effect_index != 0)
SpellFunctions * spellAPI
FigureFunctions * figureAPI
ToolboxFunctions * toolboxAPI
EffectFunctions effectAPI
void __thiscall spellClearFigureFlag(SF_CGdSpell *_this, uint16_t spell_id, SpellFlagKey key)
@ SPELL_STAT_MUL_MODIFIER2
@ SPELL_STAT_MUL_MODIFIER4
@ SPELL_STAT_MUL_MODIFIER3
@ SPELL_STAT_MUL_MODIFIER
@ CHECK_SPELLS_BEFORE_JOB2
@ CHECK_SPELLS_BEFORE_CHECK_BATTLE
void __thiscall inablility_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall common_handler_done(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall aura_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall chill_resistance_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall melt_resistance_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall black_almightness_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall edurance_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall fast_fighting_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall eternity_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall dexterity_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall mutation_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall white_almightness_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall default_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall common_handler_check_battle(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall common_handler_check_unfreeze2(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall common_handler_job_battle_check2(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall common_handler_unfreeze(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall strength_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall weaken_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall enlightenment_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall fog_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall inflexibility_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall decay1_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall charisma_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall suffocation_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall brilliance_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall quickness_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall common_handler_check_unfreeze(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall slow_fighting_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall slowness_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall clay_feet_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall flexibility_end_handler(SF_CGdSpell *_this, uint16_t spell_index)
void __thiscall common_handler_job_battle_check(SF_CGdSpell *_this, uint16_t spell_index)
tryEndEffect_ptr tryEndEffect
SF_CGDEffect * SF_CGdEffect
SF_CGdFigure * SF_CGdFigure
SF_CGdFigureToolbox * SF_CGdFigureToolBox
SF_GdSpell active_spell_list[800]
getResourceSpellData_ptr getResourceSpellData
setEffectDone_ptr setEffectDone
Stops a spell effect handler for a given spell.
getXData_ptr getXData
Retrieves the XData value for a specific spell.
removeDLLNode_ptr removeDLLNode
Used to remove a spell from the list of active spells over the target.