summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshadow <shadow@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-07 02:52:03 +0000
committershadow <shadow@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-07 02:52:03 +0000
commita1feda545433edf86258efe0394b4d6027a461e8 (patch)
treec512aaee8502d4399df8b482dc8bf0dcfc0183b0 /src/map/status.c
parentbaf58e38ae2bcc6e3b8fb0de650234cb29dff8b5 (diff)
downloadhercules-a1feda545433edf86258efe0394b4d6027a461e8.tar.gz
hercules-a1feda545433edf86258efe0394b4d6027a461e8.tar.bz2
hercules-a1feda545433edf86258efe0394b4d6027a461e8.tar.xz
hercules-a1feda545433edf86258efe0394b4d6027a461e8.zip
Fixed a few properties of NPC_CHANGEUNDEAD bugreport:79
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12763 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index d3d9f3544..96c130f53 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4840,6 +4840,8 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
switch (type)
{
case SC_BLESSING:
+ //TO-DO Blessing and Agi up should do 1 damage against players on Undead Status, even on PvM
+ //but cannot be plagiarized (this requires aegis investigation on packets and official behavior) [Brainstorm]
if ((!undead_flag && status->race!=RC_DEMON) || bl->type == BL_PC) {
if (sc->data[SC_CURSE])
status_change_end(bl,SC_CURSE,-1);
@@ -4956,6 +4958,14 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
if(sc->data[SC_ADJUSTMENT])
status_change_end(bl,SC_ADJUSTMENT,-1);
break;
+ //NPC_CHANGEUNDEAD will debuff Blessing and Agi Up
+ case SC_CHANGEUNDEAD:
+ if(sc->data[SC_BLESSING])
+ status_change_end(bl,SC_BLESSING,-1);
+ if(sc->data[SC_INCREASEAGI])
+ status_change_end(bl,SC_INCREASEAGI,-1);
+ break;
+
}
//Check for overlapping fails