Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Creature] - Fixed auto attacks in the Passive rack caused by SmartAI #29905

Open
vahzxz opened this issue Apr 9, 2024 · 2 comments
Open

[Creature] - Fixed auto attacks in the Passive rack caused by SmartAI #29905

vahzxz opened this issue Apr 9, 2024 · 2 comments

Comments

@vahzxz
Copy link

vahzxz commented Apr 9, 2024

Description

When setting the NPC flag passive via SmartAI, the NPC does not know how to auto attack. Below is a fix that solves this problem.

https://gist.github.com/vahzxz/5cf24c07356494810eb9fb9418552de0

Close: #29783

Expected behaviour

The NPC must attack the target with the auto attack command

Steps to reproduce the problem

Set any NPC to a passive state and give him the command to attack.

Branch

3.3.5

TC rev. hash/commit

2ae8c0d

Operating system

Win Server 2022

Custom changes

No

@CraftedRO
Copy link
Contributor

c++ fixes are submited in a pull request

@Rushor
Copy link
Contributor

Rushor commented Apr 13, 2024

Set any NPC to a passive state and give him the command to attack.

Do you mean pet charms? Can you give an example for a wrath quest maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants