Files
HeroesStone_PRC8/_module/nss/werewolfattack.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

41 lines
1.2 KiB
Plaintext

//Werewolf Attack, goes in OnCombatRoundEnd for werewolf
//::///////////////////////////////////////////////
//:: Default: End of Combat Round
//:: NW_C2_DEFAULT3
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Calls the end of combat script every round
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 16, 2001
//:://////////////////////////////////////////////
#include "NW_I0_GENERIC"
void main()
{
ExecuteScript("prc_npc_combat", OBJECT_SELF);
//effect eSilver = EffectDamageReduction(15,DAMAGE_POWER_PLUS_ONE);
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,eSilver,OBJECT_SELF);
object oPC = GetAttackTarget(OBJECT_SELF);
object oWolfWeapon = GetLastWeaponUsed(OBJECT_SELF);
object oWolfBite = GetObjectByTag("WWBite");
if(oWolfWeapon == oWolfBite)
{
ExecuteScript("werewolfbite",oPC);
}
if(GetBehaviorState(NW_FLAG_BEHAVIOR_SPECIAL))
{
DetermineSpecialBehavior();
}
else if(!GetSpawnInCondition(NW_FLAG_SET_WARNINGS))
{
DetermineCombatRound();
}
if(GetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1003));
}
}