Jump to content

help with summon not coming back after attack


Recommended Posts

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);
	}

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock