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

[Cleanup] Merge Client::Attack and Bot::Attack into Mob::Attack #2756

Merged
merged 8 commits into from Jan 20, 2023

Conversation

Aeadoin
Copy link
Contributor

@Aeadoin Aeadoin commented Jan 18, 2023

To reduce the need to maintain multiple methods that do the same thing, Bots should be treated as clients for majority of scenarios encountered.

This also allows Bots to be affected by the Rule Combat:LevelToStopDamageCaps, previously they were ignoring it... which would have been an issue for anyone wanting to use DamageCaps with Bots

Mercs still use NPC::Attack method, as they derive their damage thru their base stats.

@Akkadius
Copy link
Member

I’ll look at this one later, running errands

zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/bot.cpp Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
zone/attack.cpp Outdated Show resolved Hide resolved
Copy link
Member

@Akkadius Akkadius left a comment

Choose a reason for hiding this comment

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

lgtm; minor comments

be careful with these kind of changes

@Aeadoin Aeadoin merged commit 886f801 into EQEmu:master Jan 20, 2023
@Aeadoin Aeadoin deleted the BotAttack branch January 20, 2023 20:52
catapultam-habeo pushed a commit to catapultam-habeo/pyrelight-server that referenced this pull request Mar 27, 2023
…u#2756)

* [Cleanup] Merge Client::Attack and Bot::Attack into Mob::Attack (#11)

* Remove #ifdef Bots to go along with KK fix

* Remove method in logging

* remove method from logging

* Fixes

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

None yet

3 participants