diff options
author | Fate <fate-tmw@googlemail.com> | 2009-09-27 15:32:58 +0000 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-09-27 15:32:58 +0000 |
commit | bf27f14214997e97aad2a80b24885b8f9af30e0a (patch) | |
tree | 54181661f30141f3b0218d9383a5de9327524a91 /src/map/skill-pools.c | |
parent | 02ce702acb0fadcaf76470a94194f1d20e4c8bc0 (diff) | |
download | tmwa-bf27f14214997e97aad2a80b24885b8f9af30e0a.tar.gz tmwa-bf27f14214997e97aad2a80b24885b8f9af30e0a.tar.bz2 tmwa-bf27f14214997e97aad2a80b24885b8f9af30e0a.tar.xz tmwa-bf27f14214997e97aad2a80b24885b8f9af30e0a.zip |
Added "Mallard's Eye" skill (45) for ranged weapon users: increase
to-hit, increase range, decrease the malus effect of distance.
Also added an up to 31.25% damage bonus for hitting enemies that
are farther away (only affects ranged weapons).
Fixed a bug that would forget to recompute stats after changing
skill focus.
Diffstat (limited to 'src/map/skill-pools.c')
-rw-r--r-- | src/map/skill-pools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill-pools.c b/src/map/skill-pools.c index de7f04b..177a6a2 100644 --- a/src/map/skill-pools.c +++ b/src/map/skill-pools.c @@ -96,10 +96,10 @@ skill_pool_activate(struct map_session_data *sd, int skill_id) else if (sd->status.skill[skill_id].id == skill_id // knows the skill && (skill_pool_size(sd) < skill_pool_max(sd))) { sd->status.skill[skill_id].flags |= SKILL_POOL_ACTIVATED; + pc_calcstatus(sd, 0); MAP_LOG_PC(sd, "SKILL-ACTIVATE %d %d %d", skill_id, sd->status.skill[skill_id].lv, skill_power(sd, skill_id)); return 0; } - pc_calcstatus(sd, 0); return 1; // failed } |