Baleful Utterance affects detected traps

Baleful Utterance affects detected traps.  Tempest offhand attack fix.  Minified feat.2da.  Started reviewing @Tenjac's incomplete spell scripts.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-10-06 00:21:54 -04:00
parent 51b4141961
commit bb7073b5c6
20 changed files with 25193 additions and 25326 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -33,14 +33,23 @@ void main()
effect eVis = EffectVisualEffect(VFX_IMP_DESTRUCTION);
if(GetIsObjectValid(oTarget))
{
int nType = GetObjectType(oTarget);
if((nType == OBJECT_TYPE_DOOR || nType == OBJECT_TYPE_PLACEABLE) && !GetPlotFlag(oTarget))
{
/* if((nType == OBJECT_TYPE_DOOR || nType == OBJECT_TYPE_PLACEABLE ) && !GetPlotFlag(oTarget))
{
effect eDamage = EffectDamage(9999, DAMAGE_TYPE_MAGICAL);
effect eLink = EffectLinkEffects(eDamage, eVis);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eLink, oTarget);
}
} */
int nType = GetObjectType(oTarget);
if ((nType == OBJECT_TYPE_DOOR || nType == OBJECT_TYPE_PLACEABLE || nType == OBJECT_TYPE_TRIGGER) &&
!GetPlotFlag(oTarget) &&
GetIsTrapped(oTarget))
{
effect eDamage = EffectDamage(9999, DAMAGE_TYPE_MAGICAL);
effect eLink = EffectLinkEffects(eDamage, eVis);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eLink, oTarget);
}
else if(nType == OBJECT_TYPE_CREATURE)
{
PRCSignalSpellEvent(oTarget, TRUE, INVOKE_BALEFUL_UTTERANCE, OBJECT_SELF);

View File

@@ -29,6 +29,29 @@ void ApplyTwoWeaponDefense(object oPC, object oSkin)
int ACBonus = 0;
int tempestLevel = GetLevelByClass(CLASS_TYPE_TEMPEST, oPC);
if(tempestLevel >= 7)
{
ACBonus = 3;
}
else if(tempestLevel >= 4)
{
ACBonus = 2;
}
else
{
ACBonus = 1;
}
itemproperty ipACBonus = ItemPropertyACBonus(ACBonus);
SetCompositeBonus(oSkin, "TwoWeaponDefenseBonus", ACBonus, ITEM_PROPERTY_AC_BONUS);
}
/* void ApplyTwoWeaponDefense(object oPC, object oSkin)
{
int ACBonus = 0;
int tempestLevel = GetLevelByClass(CLASS_TYPE_TEMPEST, oPC);
if(tempestLevel < 4)
{
ACBonus = 1;
@@ -45,7 +68,7 @@ void ApplyTwoWeaponDefense(object oPC, object oSkin)
itemproperty ipACBonus = ItemPropertyACBonus(ACBonus);
SetCompositeBonus(oSkin, "TwoWeaponDefenseBonus", ACBonus, ITEM_PROPERTY_AC_BONUS);
}
} */
void RemoveTwoWeaponDefense(object oPC, object oSkin)
{
@@ -70,8 +93,8 @@ void ApplyExtraAttacks(object oPC)
{
RemoveExtraAttacks(oPC);
int nIncrease = 0;
if(GetHasFeat(FEAT_SUPREME_TWO_WEAPON_FIGHTING, oPC)) nIncrease = 2;
else if(GetHasFeat(FEAT_GREATER_TWO_WEAPON_FIGHTING, oPC)) nIncrease = 1;
if(GetHasFeat(FEAT_SUPREME_TWO_WEAPON_FIGHTING, oPC)) nIncrease = 4;
else if(GetHasFeat(FEAT_GREATER_TWO_WEAPON_FIGHTING, oPC)) nIncrease = 3;
ApplyEffectToObject(DURATION_TYPE_PERMANENT, TagEffect(ExtraordinaryEffect(EffectModifyAttacks(nIncrease)), "TempestTWF"), oPC);
}
@@ -87,7 +110,7 @@ void main()
object oWeapL = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC);
int armorType = GetArmorType(oArmor);
if (oArmor == OBJECT_INVALID) armorType = ARMOR_TYPE_LIGHT;
if (oArmor == OBJECT_INVALID) armorType = ARMOR_TYPE_CLOTH;
string nMes = "";

View File

@@ -3166,15 +3166,11 @@ Duration: 1 round/level (D)
Saving Throw: No
Spell Resistance: None
By casting aura of the sun, you fill the area around you with warm, glowing light that eliminates natural
shadows and hampers magical darkness.Any creature attempting to cast a spell from the shadow subschool or
a spell with the darkness descriptor within an aura of the sun must succeed on a caster level check (DC 11 +
your caster level), or the spell fails. Areas of magical darkness originating from 3rd-level or lower spells
and effects are temporarily suppressed when overlapping with an aura of the sun. Creatures that take penalties
in bright light also take them while within an aura of the sun, and an undead creature takes 1d6 points of positive
energy damage at the end of its turn every round that it spends within the spell's area.Furthermore, any creature
attempting to hide within the aura takes a -4 penalty on Hide checks.
By casting aura of the sun, you fill the area around you with warm, glowing light that eliminates natural shadows and hampers magical darkness.Any creature attempting to cast a spell from the shadow subschool or a spell with the darkness descriptor within an aura of the sun must succeed on a caster level check (DC 11 + your caster level), or the spell fails. Areas of magical darkness originating from 3rd-level or lower spells and effects are temporarily suppressed when overlapping with an aura of the sun. Creatures that take penalties
in bright light also take them while within an aura of the sun, and an undead creature takes 1d6 points of positive energy damage at the end of its turn every round that it spends within the spell's area.Furthermore, any creature attempting to hide within the aura takes a -4 penalty on Hide checks.
This effect is centered on you and moves with you.
Anyone who enters the aura immediately becomes subject to its effect, but creatures that leave are no longer affected.
</entry>
<entry id="13026" lang="en" sex="m">Righteous Aura</entry>