PRC8/nwn/trunk/spells/nw_s2_animalcom.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

34 lines
1.0 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Summon Animal Companion
//:: NW_S2_AnimalComp
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
This spell summons a Druid's animal companion
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Sept 27, 2001
//:://////////////////////////////////////////////
#include "prc_alterations"
#include "prc_inc_assoc"
void main()
{
//Yep thats it
SummonAnimalCompanion();
object oPC = OBJECT_SELF;
object oComp = GetAssociate(ASSOCIATE_TYPE_ANIMALCOMPANION);//make sure it's bioware Animal Companion here
object oCompSkin = GetPCSkin(oComp);
//Exalted Companion
if(GetHasFeat(FEAT_EXALTED_COMPANION, oPC) && GetAlignmentGoodEvil(oPC) == ALIGNMENT_GOOD)
ApplyExaltedCompanion(oComp, oCompSkin);
//Talontar Blightlord's Illmaster
if(GetLevelByClass(CLASS_TYPE_BLIGHTLORD, oPC) >= 2)
ApplyIllmaster(oComp, oCompSkin);
}