summaryrefslogtreecommitdiff
path: root/npc/026-7
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-23 13:19:51 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-23 13:19:51 -0300
commit5c2af8c745d40ca31c372a2e800fdd79127cc539 (patch)
treefbaffab5d7ab681d82aee45fa8d2f97ecafabd3c /npc/026-7
parentab7ee3e212b21c9872d643d2548cfafb7b01eba2 (diff)
downloadserverdata-5c2af8c745d40ca31c372a2e800fdd79127cc539.tar.gz
serverdata-5c2af8c745d40ca31c372a2e800fdd79127cc539.tar.bz2
serverdata-5c2af8c745d40ca31c372a2e800fdd79127cc539.tar.xz
serverdata-5c2af8c745d40ca31c372a2e800fdd79127cc539.zip
Impose the first scenario restriction
Diffstat (limited to 'npc/026-7')
-rw-r--r--npc/026-7/boss.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/026-7/boss.txt b/npc/026-7/boss.txt
index ac9ddd4ab..b39a73608 100644
--- a/npc/026-7/boss.txt
+++ b/npc/026-7/boss.txt
@@ -80,6 +80,12 @@ OnBegin:
.@opt=.@opt|MD_CHANGETARGET_CHASE;
setunitdata(.MK, UDT_MODE, .@opt);
setunitdata(.MK, UDT_RACE, RC_Legendary);
+ // If the number of players is below the expected, BUFF the damage
+ // +20% max damage every missing player
+ if (getmapusers("026-7") < 5) {
+ .@bat=getunitdata(.MK, UDT_ATKMAX);
+ .@bat += .@bat / 5 * (5-getmapusers("026-7"));
+ }
// The Four Generals which command his immortality
.GUARD1=monster("026-7", 35, 30, "Air General", MonsterGeneral, 1);
.GUARD4=monster("026-7", 44, 45, "Fire General", MonsterGeneral, 1);