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

StaticFlags: Implement SPAWN_DEFENSIVE and IGNORE_COMBAT #538

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

insunaa
Copy link
Contributor

@insunaa insunaa commented Aug 9, 2024

🍰 Pullrequest

This PR implements CreatureStaticFlags::IGNORE_COMBAT and CreatureStaticFlags2::SPAWN_DEFENSIVE

if (m_creature->GetSettings().HasFlag(CreatureStaticFlags2::SPAWN_DEFENSIVE))
SetReactState(REACT_DEFENSIVE);
else if (m_creature->GetSettings().HasFlag(CreatureStaticFlags::IGNORE_COMBAT))
SetReactState(REACT_PASSIVE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passive is invalid here, SetCanEnterCombat

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@killerwife killerwife merged commit 65d9086 into cmangos:master Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants