2026/01/12 Update 2

Fixed Hidden Talent.
Potions are usable w/ Tenser's Transformation.
Defaulted to Fire damage for Dragon breath.
Corrected Dragonfire Channeling TLK entry.
This commit is contained in:
Jaysyn904
2026-01-12 20:12:40 -05:00
parent 11a75d23c9
commit 2961d49e7d
12 changed files with 210 additions and 838 deletions

View File

@@ -2161,10 +2161,35 @@ int PRCSpellEffects(object oCaster, object oTarget, int nSpellID, int nSpellLeve
{
// Pnp Tensers Transformation
if(GetPRCSwitch(PRC_PNP_TENSERS_TRANSFORMATION))
{
{
if(GetHasSpellEffect(SPELL_TENSERS_TRANSFORMATION, oCaster))
{
// Allow potions - they are not spell trigger/completion items
object oSpellCastItem = PRCGetSpellCastItem();
if(GetIsObjectValid(oSpellCastItem))
{
int nItemType = GetBaseItemType(oSpellCastItem);
if(nItemType == BASE_ITEM_ENCHANTED_POTION
|| nItemType == BASE_ITEM_POTIONS)
{
// Continue with other checks
}
else
{
return FALSE; // Block other magic items
}
}
else
{
return FALSE; // Block regular spellcasting
}
}
}
/* {
if(GetHasSpellEffect(SPELL_TENSERS_TRANSFORMATION, oCaster))
return FALSE;
}
} */
// Gaseous Form check
if(GetHasSpellEffect(SPELL_GASEOUS_FORM, oCaster))
@@ -3757,4 +3782,4 @@ int X2PreSpellCastCode2()
// Test main
//::void main(){}
//:: void main(){}