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.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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