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

38 lines
971 B
Plaintext

//Werewolf Attack, goes in OnCombatRoundEnd for a werewolf
//::///////////////////////////////////////////////
//:: Default: End of Combat Round
//:: NW_C2_DEFAULT3
//:: WW_C2_ENDROUND
//:://////////////////////////////////////////////
/*
Calls the end of combat script every round and
checks to see if the PC was bitten.
*/
#include "NW_I0_GENERIC"
void main()
{
ExecuteScript("prc_npc_combat", OBJECT_SELF);
object oPC = GetAttackTarget(OBJECT_SELF);
object oWolfWeapon = GetLastWeaponUsed(OBJECT_SELF);
// Check for the bite
if(GetTag(oWolfWeapon) == "WWBite")
{
ExecuteScript("ww_bite",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));
}
}