2025/09/06 Update
Fixed damaged baseitems.2da Updated PEPS. Full compile.
This commit is contained in:
@@ -36,11 +36,11 @@ void main()
|
||||
{
|
||||
if(ai_HasRangedWeaponWithAmmo(oCreature))
|
||||
{
|
||||
if(!nInMelee) oTarget = ai_GetNearestTarget(oCreature);
|
||||
else oTarget = ai_GetNearestTarget(oCreature, AI_RANGE_MELEE);
|
||||
if(!nInMelee) oTarget = ai_GetNearestPhysicalTarget(oCreature);
|
||||
else oTarget = ai_GetNearestPhysicalTarget(oCreature, AI_RANGE_MELEE);
|
||||
if(oTarget != OBJECT_INVALID)
|
||||
{
|
||||
if(ai_TryRapidShotFeat(oCreature, oTarget, nInMelee)) return;
|
||||
if(ai_TryRangedTalents(oCreature, oTarget, nInMelee)) return;
|
||||
ai_ActionAttack(oCreature, AI_LAST_ACTION_RANGED_ATK, oTarget, nInMelee, TRUE);
|
||||
return;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ void main()
|
||||
}
|
||||
// **************************** MELEE ATTACKS ****************************
|
||||
if(ai_InCombatEquipBestMeleeWeapon(oCreature)) return;
|
||||
if(ai_TryWhirlwindFeat (oCreature)) return;
|
||||
if(ai_TryWhirlwindFeat(oCreature)) return;
|
||||
oTarget = ai_GetNearestTargetForMeleeCombat (oCreature, nInMelee);
|
||||
if (oTarget != OBJECT_INVALID)
|
||||
{
|
||||
|
Reference in New Issue
Block a user