diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-13 06:14:27 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-13 06:14:27 +0000 |
commit | 3e7946b89e1318de435ecbb02303d02715b988a1 (patch) | |
tree | f9396ad8d46831a102153493eae3c5ea14ed35ed /src/map/pc.c | |
parent | 5693a17936d6de9ed99e6651f0c79415bf6c9870 (diff) | |
download | hercules-3e7946b89e1318de435ecbb02303d02715b988a1.tar.gz hercules-3e7946b89e1318de435ecbb02303d02715b988a1.tar.bz2 hercules-3e7946b89e1318de435ecbb02303d02715b988a1.tar.xz hercules-3e7946b89e1318de435ecbb02303d02715b988a1.zip |
- Removed @itemcheck as it was totally pointless.
- Corrected states killer/killable being easily dispellable.
- Fixed the totally wrong text messages being used for @killer/@killable related atcommands, added appropiate entries to msg_athena
- Magic and Misc attacks will now get type "flee" when they do less than 1 damage, this blocks them from causing additional status effects when they are blocked.
- Cleaned up a bit the Basilica code, it should now properly end when you walk.
- Added an unnecessary qty check when inserting cards :P
- Fixed some logs not working when you enabled all logs.
- Corrected unmute being a level 60 command by default (should be 80)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8256 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 2095a8ff0..909233ddb 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2425,6 +2425,8 @@ int pc_insert_card(struct map_session_data *sd,int idx_card,int idx_equip) //Check validity if( nameid <= 0 || cardid <= 0 || + sd->status.inventory[idx_equip].amount < 1 || //These two should never be required due to pc_delitem zero'ing the data. + sd->status.inventory[idx_card].amount < 1 || (sd->inventory_data[idx_equip]->type!=IT_WEAPON && sd->inventory_data[idx_equip]->type!=IT_ARMOR)|| sd->inventory_data[idx_card]->type!=IT_CARD || // Prevent Hack [Ancyker] sd->status.inventory[idx_equip].identify==0 || |