-
Notifications
You must be signed in to change notification settings - Fork 241
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
Conversation
There was a problem hiding this 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
@@ -251,6 +251,9 @@ public override void OnCollideObject(WorldObject _target) | |||
|
|||
var player = ProjectileSource as Player; | |||
|
|||
if (player != null) | |||
player.LastHitSpellProjectile = spellStatMod; |
There was a problem hiding this comment.
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.
No description provided.