mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 07:14:58 +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.GameConstants;
|
||||||
import emu.lunarcore.data.GameData;
|
import emu.lunarcore.data.GameData;
|
||||||
import emu.lunarcore.data.excel.MazeBuffExcel;
|
|
||||||
import emu.lunarcore.data.excel.StageExcel;
|
import emu.lunarcore.data.excel.StageExcel;
|
||||||
import emu.lunarcore.game.avatar.GameAvatar;
|
import emu.lunarcore.game.avatar.GameAvatar;
|
||||||
import emu.lunarcore.game.inventory.GameItem;
|
import emu.lunarcore.game.inventory.GameItem;
|
||||||
@@ -143,10 +142,7 @@ public class Battle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MazeBuff addBuff(int buffId, int ownerIndex, int waveFlag) {
|
public MazeBuff addBuff(int buffId, int ownerIndex, int waveFlag) {
|
||||||
MazeBuffExcel excel = GameData.getMazeBuffExcel(buffId, 1);
|
MazeBuff buff = new MazeBuff(buffId, 1, ownerIndex, waveFlag);
|
||||||
if (excel == null) return null;
|
|
||||||
|
|
||||||
MazeBuff buff = new MazeBuff(excel, ownerIndex, waveFlag);
|
|
||||||
return addBuff(buff);
|
return addBuff(buff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user