- Fixed berserk not raising your HP to your new cap.

- Fixed ground-skills not displaying damage done.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5851 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-04-01 22:21:26 +00:00
parent b11e202bc2
commit 27e01b2442
3 changed files with 8 additions and 4 deletions

View File

@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/04/01
* Fixed berserk not raising your HP to your new cap. [Skotlex]
* Fixed ground-skills not displaying damage done. [Skotlex]
* Fixed a few functions sending a negative ID for disguised characters
(such as clif_specialeffect) which very likely produced client crashes.
[Skotlex]

View File

@ -4412,8 +4412,10 @@ int clif_skill_setunit(struct skill_unit *unit)
bl=map_id2bl(unit->group->src_id);
if (unit->group->unit_id == UNT_ATTACK_SKILLS)
return 0; //These are invisible client-side. [Skotlex]
// These are invisible client-side, but are necessary because
// otherwise the client will not know who caused the attack.
// if (unit->group->unit_id == UNT_ATTACK_SKILLS)
// return 0;
#if PACKETVER < 3
memset(WBUFP(buf, 0),0,packet_len_table[0x11f]);

View File

@ -4235,6 +4235,8 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
break;
case SC_BERSERK: /* バ?サ?ク */
if (sc->data[SC_ENDURE].timer == -1 || sc->data[SC_ENDURE].val1 <= 10)
sc_start(bl, SC_ENDURE, 100, 11, tick);
if(sd && !(flag&4)){
sd->status.hp = sd->status.max_hp * 3;
sd->status.sp = 0;
@ -4244,8 +4246,6 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
}
if (!(flag&4))
tick = 10000;
if (sc->data[SC_ENDURE].timer == -1 || sc->data[SC_ENDURE].val1 <= 10)
sc_start(bl, SC_ENDURE, 100, 11, tick);
calc_flag = 1;
break;