mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2025-12-20 08:44:47 +08:00
修复二仇顺劈绘制错误
This commit is contained in:
@@ -17,16 +17,39 @@ using ECommons.MathHelpers;
|
|||||||
namespace Emanation;
|
namespace Emanation;
|
||||||
|
|
||||||
[ScriptType(guid: "214f8fbd-ad04-430f-8bba-fd7319581780", name: "吉祥天女歼灭战", territorys: [719],
|
[ScriptType(guid: "214f8fbd-ad04-430f-8bba-fd7319581780", name: "吉祥天女歼灭战", territorys: [719],
|
||||||
version: "0.0.0.1", author: "Tetora", note: noteStr)]
|
version: "0.0.0.2", author: "Tetora", note: noteStr)]
|
||||||
|
|
||||||
public class Emanation
|
public class Emanation
|
||||||
{
|
{
|
||||||
const string noteStr =
|
const string noteStr =
|
||||||
"""
|
"""
|
||||||
v0.0.0.1:
|
v0.0.0.2:
|
||||||
LV70 吉祥天女歼灭战 初版绘制
|
LV70 吉祥天女歼灭战 初版绘制
|
||||||
""";
|
""";
|
||||||
|
|
||||||
|
public static class IbcHelper
|
||||||
|
{
|
||||||
|
public static IBattleChara? GetById(uint id)
|
||||||
|
{
|
||||||
|
return (IBattleChara?)Svc.Objects.SearchByEntityId(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IBattleChara? GetMe()
|
||||||
|
{
|
||||||
|
return Svc.ClientState.LocalPlayer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IGameObject? GetFirstByDataId(uint dataId)
|
||||||
|
{
|
||||||
|
return Svc.Objects.Where(x => x.DataId == dataId).FirstOrDefault();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IEnumerable<IGameObject?> GetByDataId(uint dataId)
|
||||||
|
{
|
||||||
|
return Svc.Objects.Where(x => x.DataId == dataId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[ScriptMethod(name: "元气刷新提示", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^93(47|74)$"])]
|
[ScriptMethod(name: "元气刷新提示", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^93(47|74)$"])]
|
||||||
public void 元气刷新(Event @event, ScriptAccessory accessory)
|
public void 元气刷新(Event @event, ScriptAccessory accessory)
|
||||||
{
|
{
|
||||||
@@ -59,8 +82,16 @@ public class Emanation
|
|||||||
public void 光之波动(Event @event, ScriptAccessory accessory)
|
public void 光之波动(Event @event, ScriptAccessory accessory)
|
||||||
{
|
{
|
||||||
var dp = accessory.Data.GetDefaultDrawProperties();
|
var dp = accessory.Data.GetDefaultDrawProperties();
|
||||||
|
|
||||||
|
var Lakshmis = Svc.Objects.Where(x => x.DataId == 7712);
|
||||||
|
foreach (var Lakshmi in Lakshmis)
|
||||||
|
{
|
||||||
|
if (Lakshmi.IsTargetable)
|
||||||
|
{
|
||||||
|
dp.Owner = Lakshmi.EntityId;
|
||||||
|
}
|
||||||
|
}
|
||||||
dp.Name = "光之波动";
|
dp.Name = "光之波动";
|
||||||
dp.Owner = @event.SourceId();
|
|
||||||
dp.TargetObject = @event.TargetId();
|
dp.TargetObject = @event.TargetId();
|
||||||
dp.Color = accessory.Data.DefaultDangerColor;
|
dp.Color = accessory.Data.DefaultDangerColor;
|
||||||
dp.Scale = new Vector2(40);
|
dp.Scale = new Vector2(40);
|
||||||
|
|||||||
Reference in New Issue
Block a user