/*:://////////////////////////////////////////////
//:: Spell Name Calm Emotions: AOE Heartbeat
//:: Spell FileName SMP_S_CalmEmotC
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
    AOE heartbeat.

    The AOE doesn't do anything except for check the validity of its creator,
    and the correct variables.

  1 If the variable doesn't exsist, then it will first delete all the people
    in the array and then remove itself.

  2 If the creator isn't valid, it will remove all effects from the spell
    created by invalid creators and then delete itself.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/

#include "SMP_INC_CONCENTR"

void main()
{
    // Get creator and us
    object oSelf = OBJECT_SELF;
    object oCaster = GetAreaOfEffectCreator(oSelf);
    int nSpell = SMP_SPELL_CALM_EMOTIONS;

    // Do the function
    SMP_ConcentrationAOEHeartbeat(oSelf, oCaster, nSpell);
}