generated from Jaysyn/ModuleTemplate
22 lines
505 B
Plaintext
22 lines
505 B
Plaintext
|
|
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
int nSpellID = GetSpellId();
|
|
|
|
if (GetHasSpellEffect(nSpellID, oPC))
|
|
{
|
|
RemoveSpellEffects(nSpellID, oPC, oPC);
|
|
}
|
|
else
|
|
{
|
|
|
|
int nAC = 2;
|
|
if (GetSkillRank(SKILL_TUMBLE, oPC, TRUE) >= 5) nAC++;
|
|
|
|
effect eLink = EffectLinkEffects(EffectACIncrease(nAC, AC_DODGE_BONUS), EffectAttackDecrease(4));
|
|
eLink = ExtraordinaryEffect(eLink);
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oPC);
|
|
}
|
|
} |