魔兽编辑 哪里出问题了?

来源:百度知道 编辑:UC知道 时间:2024/06/20 06:05:51
我用War Stomp的技能做了一个类似dota magnus可以吸引单位的群体技能。
技能伤害换成触发伤害,但晕人2秒不变。
但是我一释放技能就连建筑物都吸了过来!连自己也受伤害...

以下是触发器:
Crash Stomp
Events
Unit - A unit Begins casting an ability
Conditions
And - All (Conditions) are true

Conditions
(Ability being cast) Equal to Crash Stomp
(Level of Crash Stomp for (Casting unit)) Equal to 1

Actions
Set A = (Casting unit)
Set B = (Region centered at (Position of A) with size (0.00, 0.00))
Wait 0.50 game-time seconds
Unit Group - Pick every unit in (Units within 400.00 of (Center of B) matching (((Picked unit) belongs to an enemy of (Owner of A)) Equal to True)) and do (Actions)
Loop - Actions
Unit - Cause A to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
Special Effect - Create a special eff

这年头还有人用英文版...

出现吸建筑的情况是你没有让触发去判断触发单位周围的单位是否建筑
出现伤害自己的情况,是你只命令了触发单位实行AOE伤害,那是无视敌友的,伤害时也要让触发去判断周围的单位是敌方单位,然后选取敌方单位做伤害动作。

吸人时要选择触发单位范围内非建筑单位。
也就是选取
单位是建筑 为 假
是可破坏物 为 假
是触发单位的敌对单位 为 真
之类等等的作对象

伤害时也要选取触发单位范围内敌军单位做动作,命令触发单位对选取单位造成伤害。