Areas and Fixes
Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
This commit is contained in:
36
_module/nss/shrine_obadha002.nss
Normal file
36
_module/nss/shrine_obadha002.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
int GetHasProtection(object oPC)
|
||||
{
|
||||
effect eEff = GetFirstEffect(oPC);
|
||||
while (GetIsEffectValid(eEff)) {
|
||||
if (GetEffectType(eEff) == EFFECT_TYPE_SPELLLEVELABSORPTION)
|
||||
return TRUE;
|
||||
eEff = GetNextEffect(oPC);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
// Get the stored target
|
||||
object oPC = GetLastUsedBy();
|
||||
if (!GetIsObjectValid(oPC))
|
||||
return;
|
||||
|
||||
// Don't reapply if we're already protected
|
||||
if (GetHasProtection(oPC))
|
||||
return;
|
||||
|
||||
// if the oracle effect is off, reapply it
|
||||
effect eBless1 = EffectDamageShield(DAMAGE_BONUS_2,DAMAGE_BONUS_1d12,DAMAGE_TYPE_MAGICAL);
|
||||
effect eBless2 = EffectSpellLevelAbsorption(1,SPELL_SCHOOL_GENERAL);
|
||||
effect eDur = EffectVisualEffect(VFX_DUR_DEATH_ARMOR);
|
||||
|
||||
//Link the visual and the damage reduction effect
|
||||
//delayed to ensure praying has finished
|
||||
effect eLink = EffectLinkEffects(eBless1, eBless2);
|
||||
eLink = EffectLinkEffects(eLink,eDur);
|
||||
DelayCommand(15.0,ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oPC));
|
||||
|
||||
//Visual effect of the blessing being received
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_NATURES_BALANCE),oPC);
|
||||
}
|
Reference in New Issue
Block a user