Fixed Major Zone of Desecration

Fixed Major Zone of Desecration.
This commit is contained in:
Jaysyn904 2025-06-13 16:53:35 -04:00
parent b5d31c0297
commit 797442d3da
6 changed files with 173 additions and 173 deletions

View File

@ -12,7 +12,7 @@ void main()
{
object oTarget = GetExitingObject();
if(GetHasSpellEffect(SPELL_DES_20, oTarget) || GetHasSpellEffect(SPELL_DESECRATE, oTarget))
if(GetHasSpellEffect(SPELL_DES_20, oTarget) || GetHasSpellEffect(SPELL_DES_100, oTarget) || GetHasSpellEffect(SPELL_DESECRATE, oTarget))
{
//Search through the valid effects on the target.
effect eAOE = GetFirstEffect(oTarget);
@ -20,7 +20,7 @@ void main()
{
if(GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
{
if(GetEffectSpellId(eAOE) == SPELL_DES_20 || GetEffectSpellId(eAOE) == SPELL_DESECRATE)
if(GetEffectSpellId(eAOE) == SPELL_DES_20 || GetEffectSpellId(eAOE) == SPELL_DESECRATE || GetEffectSpellId(eAOE) == SPELL_DES_100)
RemoveEffect(oTarget, eAOE);
}
//Get next effect on the target

View File

@ -1,6 +1,6 @@
//::///////////////////////////////////////////////
//:: Desecrate
//:: prc_tn_des_b
//:: prc_tn_des_c
//:://////////////////////////////////////////////
/*
You create an aura that boosts the undead
@ -13,7 +13,7 @@ void main()
{
object oTarget = GetExitingObject();
if(GetHasSpellEffect(SPELL_DES_100, oTarget))
if(GetHasSpellEffect(SPELL_DES_20, oTarget) || GetHasSpellEffect(SPELL_DES_100, oTarget) || GetHasSpellEffect(SPELL_DESECRATE, oTarget))
{
//Search through the valid effects on the target.
effect eAOE = GetFirstEffect(oTarget);
@ -21,7 +21,7 @@ void main()
{
if(GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
{
if(GetEffectSpellId(eAOE) == SPELL_DES_100)
if(GetEffectSpellId(eAOE) == SPELL_DES_20 || GetEffectSpellId(eAOE) == SPELL_DESECRATE || GetEffectSpellId(eAOE) == SPELL_DES_100)
RemoveEffect(oTarget, eAOE);
}
//Get next effect on the target

File diff suppressed because it is too large Load Diff