2026/02/09 Update
Added and activated PRCX. Updated PEPS. Full compile.
This commit is contained in:
@@ -17,13 +17,12 @@
|
||||
void main()
|
||||
{
|
||||
object oCreature = OBJECT_SELF;
|
||||
//:: Disabled for World of Amon
|
||||
//ExecuteScript("prc_npc_combat", oCreature);
|
||||
ExecuteScript("prc_npc_combat", oCreature);
|
||||
if(AI_DEBUG) ai_Debug("nw_c2_default3", "20", GetName(oCreature) + " ends combat round." +
|
||||
" Current action: " + IntToString(GetCurrentAction(oCreature)));
|
||||
if(GetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT))
|
||||
{
|
||||
SignalEvent(OBJECT_SELF, EventUserDefined(1003));
|
||||
SignalEvent(OBJECT_SELF, EventUserDefined(EVENT_END_COMBAT_ROUND));
|
||||
}
|
||||
if(ai_Disabled(oCreature)) return;
|
||||
// Action modes get cleared prior to each OnCombatRoundEnd!
|
||||
@@ -60,7 +59,7 @@ void main()
|
||||
}
|
||||
if(ai_GetIsInCombat(oCreature))
|
||||
{
|
||||
ai_DoAssociateCombatRound (oCreature);
|
||||
ai_DoMonsterCombatRound (oCreature);
|
||||
return;
|
||||
}
|
||||
if(ai_GetBehaviorState(NW_FLAG_BEHAVIOR_SPECIAL)) ai_DetermineSpecialBehavior(oCreature);
|
||||
|
||||
Reference in New Issue
Block a user