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

Adding Sneak Attack skill for player combat #1023

Merged
merged 6 commits into from
Sep 20, 2018

Conversation

gmriggs
Copy link
Collaborator

@gmriggs gmriggs commented Sep 16, 2018

No description provided.

ghost
ghost previously approved these changes Sep 17, 2018
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Sneak Attack also affects magic damage, along with having ties to a trained or specialized Deception skill, see http://asheron.wikia.com/wiki/Sneak_Attack

ghost
ghost previously approved these changes Sep 19, 2018
@@ -251,6 +251,9 @@ public override void OnCollideObject(WorldObject _target)

var player = ProjectileSource as Player;

if (player != null)
player.LastHitSpellProjectile = spellStatMod;
Copy link

Choose a reason for hiding this comment

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

Might want to use SpellBase, instead of StatMod. School originates in the SpellBase, which is pulled from the DAT. This field is an extra in the StatMod from the Database and so could get removed at any time.

@gmriggs gmriggs merged commit 026a34d into ACEmulator:master Sep 20, 2018
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

1 participant