//::///////////////////////////////////////////////
//:: 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()
{
    // Make the creature yell battlecry 50% of the time
    if (d2() == 1)
    {
      int nBattle = d3();
      switch (nBattle)
      {
        case 1:
          PlayVoiceChat(VOICE_CHAT_BATTLECRY1);
          break;
        case 2:
          PlayVoiceChat(VOICE_CHAT_BATTLECRY2);
          break;
        case 3:
          PlayVoiceChat(VOICE_CHAT_BATTLECRY3);
          break;
      }
    }
    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));
    }
}


