mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-12 21:34:35 +01:00
Remove excel verification for battle buffs
This commit is contained in:
@@ -6,7 +6,6 @@ import java.util.List;
|
||||
|
||||
import emu.lunarcore.GameConstants;
|
||||
import emu.lunarcore.data.GameData;
|
||||
import emu.lunarcore.data.excel.MazeBuffExcel;
|
||||
import emu.lunarcore.data.excel.StageExcel;
|
||||
import emu.lunarcore.game.avatar.GameAvatar;
|
||||
import emu.lunarcore.game.inventory.GameItem;
|
||||
@@ -143,10 +142,7 @@ public class Battle {
|
||||
}
|
||||
|
||||
public MazeBuff addBuff(int buffId, int ownerIndex, int waveFlag) {
|
||||
MazeBuffExcel excel = GameData.getMazeBuffExcel(buffId, 1);
|
||||
if (excel == null) return null;
|
||||
|
||||
MazeBuff buff = new MazeBuff(excel, ownerIndex, waveFlag);
|
||||
MazeBuff buff = new MazeBuff(buffId, 1, ownerIndex, waveFlag);
|
||||
return addBuff(buff);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user