summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-13 15:27:41 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-13 15:27:41 +0000
commit68697bf554e917e8b2e43884ff75ba572dd36d89 (patch)
tree3b28af7cd31f56b45b4b9e0cc307b5d7167563fc /src/map/status.c
parent9e76ad31bc0435d209e87c61a483da6349df86f8 (diff)
downloadhercules-68697bf554e917e8b2e43884ff75ba572dd36d89.tar.gz
hercules-68697bf554e917e8b2e43884ff75ba572dd36d89.tar.bz2
hercules-68697bf554e917e8b2e43884ff75ba572dd36d89.tar.xz
hercules-68697bf554e917e8b2e43884ff75ba572dd36d89.zip
- Corrected Throw Arrow/Musical Strike's damage formula
- Altered Trick Dead. It doesn't prevents skills from being casted on you now, but damage-based skills will do no damage. - Made the battle_config.attack_attr_none apply to pets when using the "fixed damage" pet skill scripts. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8978 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/map/status.c b/src/map/status.c
index fce11fb9f..75decab54 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -939,15 +939,11 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
return 0;
}
- if (skill_num == PA_PRESSURE && flag) {
- //Gloria Avoids pretty much everything....
- tsc = target?status_get_sc(target):NULL;
- if(tsc) {
- if (tsc->option&OPTION_HIDE)
- return 0;
- if (tsc->count && tsc->data[SC_TRICKDEAD].timer != -1)
- return 0;
- }
+ if (skill_num == PA_PRESSURE && flag && target) {
+ //Gloria Avoids pretty much everything....
+ tsc = status_get_sc(target);
+ if(tsc && tsc->option&OPTION_HIDE)
+ return 0;
return 1;
}
@@ -1062,7 +1058,7 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
if(tsc && tsc->count)
{
- if (!(status->mode&MD_BOSS) && tsc->data[SC_TRICKDEAD].timer != -1)
+ if(!skill_num && !(status->mode&MD_BOSS) && tsc->data[SC_TRICKDEAD].timer != -1)
return 0;
if(skill_num == WZ_STORMGUST && tsc->data[SC_FREEZE].timer != -1)
return 0;