summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-11 14:27:49 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-11 14:27:49 +0000
commit70afc9d7d00b346e3139363abd411a51874ce5b5 (patch)
tree13cc13f914d2fac6cba3ec1601d498d85f96e244 /src/map/atcommand.c
parentec5dccd7e5e955131af7cc7d0298310a81e9e272 (diff)
downloadhercules-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/atcommand.c')
-rw-r--r--src/map/atcommand.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 57a439885..10b226257 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9828,8 +9828,6 @@ static int atshowmobs_sub(struct block_list *bl,va_list ap)
static int number=0;
struct mob_data *md;
- nullpo_retr(0, bl);
-
if(!ap){
number=0;
return 0;
@@ -9840,7 +9838,10 @@ static int atshowmobs_sub(struct block_list *bl,va_list ap)
md = (struct mob_data *)bl;
- if(md && fd && (mob_id==-1 || (md->class_==mob_id))){
+ if(md->special_state.ai || md->master_id)
+ return 0; //Hide slaves and player summoned mobs. [Skotlex]
+
+ if(fd && (mob_id==-1 || (md->class_==mob_id))){
clif_viewpoint(sd, 1, 1, bl->x, bl->y, ++number, 0xFFFFFF);
add_timer(gettick()+5000, atshowmobs_timer, fd, number);
}