Monsters tide turn by turn && Ban User Skill && Lua functions

This commit is contained in:
Akka
2022-05-07 21:47:13 +08:00
committed by Melledy
parent 29f9d6506a
commit eb94adb296
8 changed files with 232 additions and 88 deletions

View File

@@ -117,6 +117,7 @@ public class EntityMonster extends GameEntity {
this.getScene().getDeadSpawnedEntities().add(getSpawnEntry());
}
if (getScene().getScriptManager().isInit() && this.getGroupId() > 0) {
getScene().getScriptManager().onMonsterDie();
getScene().getScriptManager().callEvent(EventType.EVENT_ANY_MONSTER_DIE, null);
}
if (getScene().getChallenge() != null && getScene().getChallenge().getGroup().id == this.getGroupId()) {