summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c7
-rw-r--r--src/map/battle.c4
-rw-r--r--src/map/charcommand.c4
-rw-r--r--src/map/skill.c2
4 files changed, 9 insertions, 8 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 959327477..2104eb1b4 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -590,6 +590,7 @@ static AtCommandInfo atcommand_info[] = {
{ AtCommand_Me, "@me", 20, atcommand_me }, //added by massdriller, code by lordalfa
{ AtCommand_MonsterIgnore, "@monsterignore", 99, atcommand_monsterignore }, // [Valaris]
+ { AtCommand_MonsterIgnore, "@battleignore", 99, atcommand_monsterignore },
{ AtCommand_FakeName, "@fakename", 20, atcommand_fakename }, // [Valaris]
{ AtCommand_Size, "@size", 20, atcommand_size },
{ AtCommand_ShowExp, "@showexp", 10, atcommand_showexp},
@@ -9772,10 +9773,10 @@ int atcommand_monsterignore(
if (!sd->state.monster_ignore) {
sd->state.monster_ignore = 1;
- clif_displaymessage(sd->fd, "Monsters will now ignore you.");
+ clif_displaymessage(sd->fd, "You are now inmune to attacks.");
} else {
sd->state.monster_ignore = 0;
- clif_displaymessage(sd->fd, "Monsters are no longer ignoring you.");
+ clif_displaymessage(sd->fd, "Returned to normal state.");
}
return 0;
@@ -9795,7 +9796,7 @@ int atcommand_fakename(
if((!message || !*message) && strlen(sd->fakename) > 1) {
sd->fakename[0]='\0';
- pc_setpos(sd, sd->mapindex, sd->bl.x, sd->bl.y, 3);
+ clif_charnameack(0, &sd->bl);
clif_displaymessage(sd->fd,"Returned to real name.");
return 0;
}
diff --git a/src/map/battle.c b/src/map/battle.c
index 0b30f4f1d..5b5889284 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3028,8 +3028,8 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
TBL_PC *sd = (TBL_PC*)t_bl;
if (sd->invincible_timer != -1 || pc_isinvisible(sd))
return -1; //Cannot be targeted yet.
- if (sd->state.monster_ignore && src->type == BL_MOB)
- return 0; //option to have monsters ignore GMs [Valaris]
+ if (sd->state.monster_ignore && t_bl != s_bl && flag&BCT_ENEMY)
+ return 0; //Global inmunity to attacks.
if (sd->special_state.killable && t_bl != s_bl)
{
state |= BCT_ENEMY; //Universal Victim
diff --git a/src/map/charcommand.c b/src/map/charcommand.c
index 034fb017b..771fef36b 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -1246,7 +1246,7 @@ int charcommand_fakename(
if(strlen(name) < 1 || !name) {
if(strlen(pl_sd->fakename) > 1) {
pl_sd->fakename[0]='\0';
- pc_setpos(pl_sd, pl_sd->mapindex, pl_sd->bl.x, sd->bl.y, 3);
+ clif_charnameack(0, &pl_sd->bl);
clif_displaymessage(sd->fd,"Returned to real name.");
} else {
clif_displaymessage(sd->fd,"Character does not has a fake name.");
@@ -1260,7 +1260,7 @@ int charcommand_fakename(
}
memcpy(pl_sd->fakename,name, NAME_LENGTH-1);
- pc_setpos(pl_sd, pl_sd->mapindex, pl_sd->bl.x, pl_sd->bl.y, 3);
+ clif_charnameack(0, &pl_sd->bl);
clif_displaymessage(sd->fd,"Fake name enabled.");
return 0;
diff --git a/src/map/skill.c b/src/map/skill.c
index af9fb74dc..9b99dd8c2 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6746,7 +6746,7 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns
matk_max = sstatus->matk_max;
//Note to NOT return from the function until this is unset!
sstatus->matk_min = sc->data[SC_MAGICPOWER].val3;
- sstatus->matk_min = sc->data[SC_MAGICPOWER].val4;
+ sstatus->matk_max = sc->data[SC_MAGICPOWER].val4;
}
switch (sg->unit_id)