mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2025-12-17 15:24:41 +08:00
放置BA
This commit is contained in:
@@ -444,6 +444,9 @@ public class The_Baldesion_Arsenal
|
||||
[ScriptMethod(name: "BOSS3_绝对的美德 极性波动(钢铁)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^1422[0-3]$"])]
|
||||
public void 极性波动(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
/// var Balls = accessory.Data.Objects.Where(x => x.DataId == 还没找到DataId && x
|
||||
/// is IBattleChara chara && chara.HasStatus(new uint[] { 1710, 1711 })).ToList();
|
||||
|
||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||
dp.Name = "极性波动";
|
||||
dp.Owner = @event.SourceId();
|
||||
@@ -764,3 +767,16 @@ public static class EventExtensions
|
||||
return JsonConvert.DeserializeObject<uint>(@event["Param"]);
|
||||
}
|
||||
}
|
||||
|
||||
public static class IbcHelper
|
||||
{
|
||||
public static bool HasStatus(this IBattleChara chara, uint statusId)
|
||||
{
|
||||
return chara.StatusList.Any(x => x.StatusId == statusId);
|
||||
}
|
||||
|
||||
public static bool HasStatus(this IBattleChara chara, uint[] statusIds)
|
||||
{
|
||||
return chara.StatusList.Any(x => statusIds.Contains(x.StatusId));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user