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

Send current attacker message to client. #3391

Merged
merged 4 commits into from
Dec 19, 2020

Conversation

jspashett
Copy link
Contributor

Send the current attacker message to the client so that the client can
use the last attack keyboard shortcut to select the last attacker.

Note that these will be sent often when there are multiple attackers.
The message should only be sent when the attacker changes

Send the current attacker message to the client so that the client can
use the last attack keyboard shortcut to select the last attacker.

Note that these will be sent often when there are multiple attackers.
The message should only be sent when the attacker changes
@jspashett
Copy link
Contributor Author

I seems it might be the case that this message will be sent when a projectile is fired from a creature, rather than if/when it hits a player. That would be wrong.

@jspashett
Copy link
Contributor Author

I seems it might be the case that this message will be sent when a projectile is fired from a creature, rather than if/when it hits a player. That would be wrong.

This is incorrect. I cannot currently find a place to issue this message without sprikling if statements around the code base. .e.g TryResistSpell should sometimes issue the message, as well as many other places. There doesn't a appear to be a (single)place / callback to capture an incoming attack on a creature/player

@jspashett jspashett force-pushed the send_last_attacker_msg_to_client branch 2 times, most recently from 324c8c7 to bfb75a3 Compare December 17, 2020 22:29
@jspashett jspashett force-pushed the send_last_attacker_msg_to_client branch from bfb75a3 to 875d65c Compare December 17, 2020 22:39
@gmriggs gmriggs merged commit f4e9d72 into ACEmulator:master Dec 19, 2020
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

2 participants