Jump to content

Recommended Posts

Posted

Hi folks, im having an weird issue, summon isnt coming back to master when it kills a mob, you have to touch "change movement mode " someone had this issue ? its acis 399.

I see that the code its ok, but maybe im wrong. 

 

thanks . 

	@Override
	protected void thinkAttack()
	{
		if (getActor().denyAiAction())
		{
			doActiveIntention();
			return;
		}
		
		final Creature target = _currentIntention.getFinalTarget();
		if (isTargetLost(target))
		{
			doActiveIntention();
			return;
		}
		
		final boolean isShiftPressed = _currentIntention.isShiftPressed();
		if (getActor().getMove().maybeStartOffensiveFollow(target, getActor().getStatus().getPhysicalAttackRange()))
		{
			if (isShiftPressed)
				doActiveIntention();
			
			return;
		}
		
		getActor().getMove().stop();
		
		if (!getActor().getAttack().canDoAttack(target))
		{
			doActiveIntention();
			return;
		}
		
		getActor().getAttack().doAttack(target);
	}

 

Posted

It's already fixed on rev 401. As stated in the changeset, it's linked to follow state behavior.

 

Quote
  • Don't change Summon follow state if using "attack" action. Ty Gigi85 for report.
  • Fix Summon "move" action - it now follows the target, but still simply move to location for Creature-unlike WorldObjects.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...