Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include "prc_feat_const"
void main()
{
if (!GetHasFeat(FEAT_TURN_UNDEAD,OBJECT_SELF))
{
SpeakStringByStrRef(40550);
return;
}
// removed evil check since Defenders of Faith has no mention of evil being unable to use.
DecrementRemainingFeatUses(OBJECT_SELF,FEAT_TURN_UNDEAD);
int iCha = GetAbilityModifier(ABILITY_CHARISMA);
iCha = iCha < 1 ? 1: iCha;
object oWeapR = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND);
object oWeapL = GetItemInSlot(INVENTORY_SLOT_LEFTHAND);
AddItemProperty(DURATION_TYPE_TEMPORARY,ItemPropertyDamageBonusVsRace(IP_CONST_RACIALTYPE_UNDEAD,IP_CONST_DAMAGETYPE_POSITIVE,IP_CONST_DAMAGEBONUS_2d6),oWeapR,RoundsToSeconds(iCha));
AddItemProperty(DURATION_TYPE_TEMPORARY,ItemPropertyDamageBonusVsRace(IP_CONST_RACIALTYPE_UNDEAD,IP_CONST_DAMAGETYPE_POSITIVE,IP_CONST_DAMAGEBONUS_2d6),oWeapL,RoundsToSeconds(iCha));
}