Explorar o código

* Fixed #610, PR_IMPOSITIO: Lower levels of Impositio Manus will overwrite higher levels. For example, someone with level 5 IM activated will have +25 ATK from the skill, but if level 1 IM were used on them their ATK would drop to only +5. Therefore, this skill can be used offensively.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
Cydh Ramdh %!s(int64=9) %!d(string=hai) anos
pai
achega
b5f2f0ae8f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/map/status.c

+ 4 - 0
src/map/status.c

@@ -8497,6 +8497,10 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
 	case SC_EQC:
 		status_change_end(bl,SC_TINDER_BREAKER2,INVALID_TIMER);
 		break;
+	case SC_IMPOSITIO:
+		if (sc && sc->data[SC_IMPOSITIO] && sc->data[SC_IMPOSITIO]->val1 > val1) //Replace higher level effect for lower.
+			status_change_end(bl,SC_IMPOSITIO,INVALID_TIMER);
+		break;
 	}
 
 	// Check for overlapping fails