P. Search on DB & Bamboo Rain patch

Revised bosses on Dojo taking OHKO's from Bamboo Rain.
Fixed default table attribute "partySearch" on DB.
Preparing for new release.
This commit is contained in:
ronancpl
2019-12-27 02:27:10 -03:00
parent 07fe495bfd
commit b22813c8e5
8 changed files with 123 additions and 66 deletions

View File

@@ -589,11 +589,14 @@ public class GameConstants {
return mapid >= 925030100 && mapid < 925040000;
}
public static boolean isDojoBoss(int mobid) {
return mobid >= 9300184 && mobid < 9300216;
}
public static boolean isDojoBossArea(int mapid) {
return isDojo(mapid) && (((mapid / 100) % 100) % 6) > 0;
}
public static boolean isPyramid(int mapid) {
return mapid >= 926010010 & mapid <= 930010000;
}

View File

@@ -25,6 +25,7 @@ import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
@@ -290,6 +291,18 @@ public abstract class AbstractDealDamageHandler extends AbstractMaplePacketHandl
}
}
if (GameConstants.isDojoBoss(monster.getId())) {
if (attack.skill == 1009 || attack.skill == 10001009 || attack.skill == 20001009) {
int dmgLimit = (int) Math.ceil(0.3 * monster.getMaxHp());
List<Integer> _onedList = new LinkedList<>();
for (Integer i : onedList) {
_onedList.add(i < dmgLimit ? i : dmgLimit);
}
onedList = _onedList;
}
}
for (Integer eachd : onedList) {
if(eachd < 0) eachd += Integer.MAX_VALUE;
totDamageToOneMonster += eachd;