#W# Archers get a damage stalking bonus for tracking prey.
This commit is contained in:
parent
44b5c66573
commit
85c094813b
2 changed files with 24 additions and 6 deletions
|
|
@ -1087,7 +1087,24 @@ namespace Server.Items
|
|||
|
||||
public virtual int ComputeDamage( Mobile attacker, Mobile defender )
|
||||
{
|
||||
return (int)ScaleDamageOld( attacker, GetBaseDamage( attacker ), true );
|
||||
//return (int)ScaleDamageOld( attacker, GetBaseDamage( attacker ), true );
|
||||
int damage = (int)ScaleDamageOld( attacker, GetBaseDamage( attacker ), true );
|
||||
|
||||
// Ranger Ambush Mechanic
|
||||
if ( this is BaseRanged )
|
||||
{
|
||||
double distance = Server.SkillHandlers.Tracking.GetStalkingBonus( attacker, defender );
|
||||
|
||||
if ( distance > 0 )
|
||||
{
|
||||
double bonusMultiplier = distance * 0.05;
|
||||
damage += (int)(damage * bonusMultiplier);
|
||||
|
||||
attacker.SendMessage( "You land a devastating ambush shot on your quarry!" );
|
||||
}
|
||||
}
|
||||
|
||||
return damage;
|
||||
}
|
||||
|
||||
public virtual void PlayHurtAnimation( Mobile from )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue