diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-12 14:28:39 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-12 14:28:39 +0000 |
commit | 55ba4be17e2abefa0fdaa25c387bf30bdaf49332 (patch) | |
tree | 3159eee66c510c377a365f355b61ae91a5e74aaa /src/map/pc.c | |
parent | 6e6cca7898f07d1707bdfa4f9d6b70b78ca3ec1e (diff) | |
download | hercules-55ba4be17e2abefa0fdaa25c387bf30bdaf49332.tar.gz hercules-55ba4be17e2abefa0fdaa25c387bf30bdaf49332.tar.bz2 hercules-55ba4be17e2abefa0fdaa25c387bf30bdaf49332.tar.xz hercules-55ba4be17e2abefa0fdaa25c387bf30bdaf49332.zip |
- Added debug command @displayskill. Should be used only by people searching for new skill IDs.
- Now the bonus bAtkEle will be transferred directly to the weapon when the script is in the ammunition, and you are wielding a weapon that consumes ammo per atttack.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10232 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index eca06237d..7ea090113 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1442,7 +1442,20 @@ int pc_bonus(struct map_session_data *sd,int type,int val) switch (sd->state.lr_flag) { case 2: - sd->arrow_ele=val; + switch (sd->status.weapon) { + case W_BOW: + case W_REVOLVER: + case W_RIFLE: + case W_SHOTGUN: + case W_GATLING: + case W_GRENADE: + //Become weapon element. + status->rhw.ele=val; + break; + default: //Become arrow element. + sd->arrow_ele=val; + break; + } break; case 1: status->lhw->ele=val; |