GetIsMagicStatBonus(object)

Returns spellcasting ability modifier.

int GetIsMagicStatBonus(
    object oCaster
);

Parameters

oCaster

Creature in question.


Description

Returns the modifier from the ability score that matters for this caster.



Remarks

This function is not compatible with custom content as it is class based.

Known Bugs

Works wrong with creatures having more than one casting class.

Requirements

#include "x2_i0_spells"


Version

???

See Also

functions:  GetLastSpellCastClass | GetAbilityModifier | GetCasterAbilityModifier
constants:  CLASS_TYPE_* | ABILITY_*
categories:  Get Data From Creature Functions | Spells Functions


author: ShaDoOoW, editor: Kookoo