2025/12/12 Update
Updated PEPS Hooked up module GUI event for spell effect manager. Updated nim tools. Full compile.
This commit is contained in:
@@ -38,8 +38,8 @@ 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)
|
||||
{
|
||||
ai_ActionAttack(oCreature, AI_LAST_ACTION_RANGED_ATK, oTarget, nInMelee, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user