diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-20 20:56:55 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-20 20:56:55 +0000 |
commit | b720934d03f18b4858029a38faf142cf656774cc (patch) | |
tree | 0ef63a2572ba329984a0d040e1d699ad0f04361e /src/map/pc.c | |
parent | 270ea9d6ada343b9d05e4c5d6d2616759efb02f9 (diff) | |
download | hercules-b720934d03f18b4858029a38faf142cf656774cc.tar.gz hercules-b720934d03f18b4858029a38faf142cf656774cc.tar.bz2 hercules-b720934d03f18b4858029a38faf142cf656774cc.tar.xz hercules-b720934d03f18b4858029a38faf142cf656774cc.zip |
- Added SC_ARMOR_RESIST, used by Undead Scroll, gives you resistance against elements and it's can be used with Resist Potions.
- SC_ARMOR_RESIST and SC_BENEDICTIO ends if you change your armor. Tested on iRO.
- If you call SC_ELEMENTALCHANGE with val3 = 1 it will use the level in val 1, and not a random value.
* Barricades:
- Fixed a bug when @reloadscript. Barricades should be destroyed too.
- Unbreakable barricades are only wall type (not shootable) According to Doddler info.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12407 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index de2e73ba5..c379e6460 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -6590,6 +6590,14 @@ int pc_unequipitem(struct map_session_data *sd,int n,int flag) sd->weapontype1 == 0 && sd->weapontype2 == 0) skill_enchant_elemental_end(&sd->bl,-1); + if(sd->status.inventory[n].equip & EQP_ARMOR) { + // On Armor Change... + if( sd->sc.data[SC_BENEDICTIO] ) + status_change_end(&sd->bl, SC_BENEDICTIO, -1); + if( sd->sc.data[SC_ARMOR_RESIST] ) + status_change_end(&sd->bl, SC_ARMOR_RESIST, -1); + } + sd->status.inventory[n].equip=0; if(flag&1) { |