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

Fixes dealing-attack judgment when riding on monsters #33388

Merged
merged 2 commits into from
Aug 22, 2019

Conversation

RedShakespeare
Copy link
Contributor

@RedShakespeare RedShakespeare commented Aug 20, 2019

Summary

SUMMARY: Bugfixes "Fixes dealing-attack judgment when riding on monsters"

Purpose of change

Fixes #33361-Mountable creatures fail to block attacks for the riders
Now big mounts or mounts with MECH_DEFENSIVE flag can protect their riders,

Describe the solution

Rewrites Creature::deal_melee_attack() & deal_projectile_attack(), changes the subject from the ridden monster to the rider.

Describe alternatives you've considered

Add a "rider" attribute to the Creature class and merge all the being-attacked judgment of the rider into the ridden monster's judgment.

Additional context

(Compiled & tested successfully on Mac)

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. labels Aug 20, 2019
@ZhilkinSerg ZhilkinSerg merged commit 6aeb08b into CleverRaven:master Aug 22, 2019
@RedShakespeare RedShakespeare deleted the mechbot branch August 24, 2019 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mountable creatures fail to block attacks for the riders
2 participants