diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-11 14:27:49 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-11 14:27:49 +0000 |
commit | 70afc9d7d00b346e3139363abd411a51874ce5b5 (patch) | |
tree | 13cc13f914d2fac6cba3ec1601d498d85f96e244 /src/map/status.c | |
parent | ec5dccd7e5e955131af7cc7d0298310a81e9e272 (diff) | |
download | hercules-70afc9d7d00b346e3139363abd411a51874ce5b5.tar.gz hercules-70afc9d7d00b346e3139363abd411a51874ce5b5.tar.bz2 hercules-70afc9d7d00b346e3139363abd411a51874ce5b5.tar.xz hercules-70afc9d7d00b346e3139363abd411a51874ce5b5.zip |
- Summoned and slave mobs won't show up on @showmobs anymore.
- Moved Spider Web damage bonus from battle_calc_damage to battle_attr_fix, so that damage will be doubled based on the actual attack element.
- Adjusted autospell cards to trigger only on physical weapon attacks.
- Adjusted a bit the heal code, it should now show either the full heal amount, or 0, depending on whether the target was healed at all or not (this also means it shows 0 if you try to heal a full-life character.. but it's the closest I've gotten to make it display 0 on Berserked chars)
- Memorize will be consumed even on instant cast spells now.
- Berserk will end now if hit and remaining hp is less or equal to 100.
- Guild Aura will be removed on sc-load to prevent Guild Masters from getting that bonus from the old implementation.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8705 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 069e02f64..7cf7109b2 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -655,6 +655,9 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s (sc->data[SC_PROVOKE].timer==-1 || !sc->data[SC_PROVOKE].val2) &&
status->hp < status->max_hp>>2)
sc_start4(target,SC_PROVOKE,100,10,1,0,0,0);
+ if (sc->data[SC_BERSERK].timer != -1 &&
+ status->hp <= 100)
+ status_change_end(target, SC_BERSERK, -1);
}
switch (target->type)
@@ -5601,6 +5604,10 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val if (!val3)
return 0;
break;
+ case SC_GUILDAURA:
+ //Compatibility Upgrade due to Guild Aura code rewrite
+ //(older saved SC versions would load up with huge bonuses)
+ return 0;
}
//Those that make you stop attacking/walking....
switch (type) {
|