summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt4
-rw-r--r--db/Changelog.txt2
-rw-r--r--db/const.txt2
-rw-r--r--src/map/party.c2
-rw-r--r--src/map/skill.c5
-rw-r--r--src/map/status.c8
6 files changed, 13 insertions, 10 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 97575132c..7c83a9fc1 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,10 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2007/12/14
+ * Wand of Hermode now dispells buffs only of allies.
+ * Fixed some null pointer checks in status_change_end.
+ * Corrected a crashy Warning message. [Skotlex]
2007/12/13
* Fixed possible segmentation faults in the script engine.
- some strings that can be freed outside the script engine were being
diff --git a/db/Changelog.txt b/db/Changelog.txt
index 403c8dba6..989e80bf0 100644
--- a/db/Changelog.txt
+++ b/db/Changelog.txt
@@ -38,6 +38,8 @@
=======================
+12/14
+ * corrected Option_Xmas value in const.txt [Skotlex]
12/13
* Rev. 11909 Fixed Big Defense Potion 10ea Box. (was giving small def pot.) [L0ne_W0lf]
12/05
diff --git a/db/const.txt b/db/const.txt
index cd7303669..ed9c3d57a 100644
--- a/db/const.txt
+++ b/db/const.txt
@@ -165,7 +165,7 @@ EAJ_BABY_ROGUE 0x2206
EAJ_BABY_SOUL_LINKER 0x2207
Option_Wedding 0x1000
-Option_Xmas 0x20000
+Option_Xmas 0x10000
Option_Summer 0x40000
bc_all 0
diff --git a/src/map/party.c b/src/map/party.c
index bfaf21b8a..dc5ddb1f9 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -155,7 +155,7 @@ int party_check_member(struct party *p)
ARR_FIND( 0, MAX_PARTY, j, p->member[j].account_id == sd->status.account_id && p->member[j].char_id == sd->status.char_id );
if( j == MAX_PARTY )
{
- ShowWarning("party_check_member: '%s' (acc:%d) is not member of party '%s' (id:%d)\n",sd->status.char_id,sd->status.name,p->name,p->party_id);
+ ShowWarning("party_check_member: '%s' (acc:%d) is not member of party '%s' (id:%d)\n",sd->status.name,sd->status.account_id,p->name,p->party_id);
sd->status.party_id = 0;
}
}
diff --git a/src/map/skill.c b/src/map/skill.c
index 4e60a39f9..fd116f02e 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6544,6 +6544,10 @@ int skill_unit_onplace (struct skill_unit *src, struct block_list *bl, unsigned
0,0,sg->limit);
break;
+ case UNT_HERMODE:
+ if (sg->src_id!=bl->id && battle_check_target(&src->bl,bl,BCT_PARTY|BCT_GUILD) > 0)
+ status_change_clear_buffs(bl,1); //Should dispell only allies.
+ break;
case UNT_RICHMANKIM:
case UNT_ETERNALCHAOS:
case UNT_DRUMBATTLEFIELD:
@@ -6551,7 +6555,6 @@ int skill_unit_onplace (struct skill_unit *src, struct block_list *bl, unsigned
case UNT_ROKISWEIL:
case UNT_INTOABYSS:
case UNT_SIEGFRIED:
- case UNT_HERMODE:
//Needed to check when a dancer/bard leaves their ensemble area.
if (sg->src_id==bl->id && !(sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_BARDDANCER))
return skillid;
diff --git a/src/map/status.c b/src/map/status.c
index f9237f565..91ae9eb06 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5552,10 +5552,6 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
val2 = 50*val1; //aspd reduction
break;
- case SC_HERMODE:
- status_change_clear_buffs(bl,1);
- break;
-
case SC_REGENERATION:
if (val1 == 1)
val2 = 2;
@@ -6206,10 +6202,8 @@ int status_change_end(struct block_list* bl, enum sc_type type, int tid)
sc = status_get_sc(bl);
status = status_get_status_data(bl);
- nullpo_retr(0,sc);
- nullpo_retr(0,status);
- if(type < 0 || type >= SC_MAX || !(sce = sc->data[type]))
+ if(type < 0 || type >= SC_MAX || !sc || !(sce = sc->data[type]))
return 0;
BL_CAST(BL_PC,bl,sd);