PRC8/trunk/scripts/prc_hvcm_btlcst.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

32 lines
999 B
Plaintext

// Written by Stratovarius
// Turns Battlecast on and off for the Havoc Mage.
#include "prc_spell_const"
#include "prc_ipfeat_const"
#include "prc_alterations"
void main()
{
object oPC = OBJECT_SELF;
object oSkin = GetPCSkin(oPC);
string nMes = "";
if(!GetLocalInt(oPC, "HavocMageBattlecast"))
{
SetLocalInt(oPC, "HavocMageBattlecast", TRUE);
//AddItemProperty(DURATION_TYPE_PERMANENT, PRCItemPropertyBonusFeat(IP_CONST_IMP_CC), oSkin);
IPSafeAddItemProperty(oSkin, PRCItemPropertyBonusFeat(IP_CONST_IMP_CC), 0.0f, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);
nMes = "*Battlecast Activated*";
}
else
{
// Removes effects
PRCRemoveSpellEffects(SPELL_BATTLECAST, oPC, oPC);
DeleteLocalInt(oPC, "HavocMageBattlecast");
nMes = "*Battlecast Deactivated*";
RemoveSpecificProperty(oSkin, ITEM_PROPERTY_BONUS_FEAT, IP_CONST_IMP_CC);
}
FloatingTextStringOnCreature(nMes, oPC, FALSE);
}