[General] Prevent "Our forces are under attack" when targeting an enemy

Status
Not open for further replies.
Level 12
Joined
May 16, 2020
Messages
660
Hi,

I'm trying to create Dota's Charge of Darkness spell:

Spirit Breaker fixes his sight on an enemy unit and starts charging through all objects. All enemy units passed through and the targeted unit will be hit by a Greater Bash. If the targeted unit dies, Spirit Breaker will change his target to the nearest enemy unit to that location.

As base, I'm using the Channel spell (Base Order ID = magicleash) with a Cast Range of 99999.
It's important that the spell is channeled, because this prevents the caster from turning/attacking when I move him across the map with "Set X/Y" to his designated target.

The problem: When casting the spell on an enemy, the enemy is currently receiving an alert ("Our forces are under attack" announcement and map warning).

Since the spell relies on enemies not being aware that they are being charged, I want to prevent this warning.
Any idea how I can do this?

Cheers
 
Level 12
Joined
May 16, 2020
Messages
660
Thanks, this seems to work.

Edit: Actually no, I'm still getting the warning.

@Dr Super Good You once helped me "fix" a corrupted Channel ability. The problem back then was that the Base Order ID didn't match with what the Channel ability did (I think the problem was that Target Type was set to instant (no unit), but the Base Order ID was earthquake).

Is it OK to use a non-channling ability (something NOT on this list) for a spell which I want to be channeled?

Since this corruption happened I always tried to find a Base Order ID that fits my spell as close as possible. But potentially it's just about making sure the Base Order ID and the Target Type are aligned.
 
Last edited:
Level 23
Joined
Dec 4, 2007
Messages
1,554
I think you have to use channel to be able to target spell immune targets (like avatar).
Not sure, but maybe icefrog back then replaced the .wav file and removed the game interface message.
 
Level 12
Joined
May 16, 2020
Messages
660
According to this, Icefrog used 'Channel' as Base Order ID. I very much assume this will prevent the warning.
This unfortunately makes it hard to test, as I can't force computers to cast the ability on me (there is no "Channel" under Unit - Issue Order Targeting A Unit")

I think you have to use channel to be able to target spell immune targets (like avatar).
Not sure, but maybe icefrog back then replaced the .wav file and removed the game interface message.
You mean the ability Channel or Base Order ID Channel?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
According to this, Icefrog used 'Channel' as Base Order ID. I very much assume this will prevent the warning.
This unfortunately makes it hard to test, as I can't force computers to cast the ability on me (there is no "Channel" under Unit - Issue Order Targeting A Unit")


You mean the ability Channel or Base Order ID Channel?
When GUI is lacking, switch to code:
vJASS:
call IssueTargetOrder(sourceUnit, "order", targetUnit)
call IssueTargetOrderById(sourceUnit, orderId, targetUnit)
  • Custom script: call IssueTargetOrder(sourceUnit, "channel", targetUnit)
  • Custom script: call IssueTargetOrderById(sourceUnit, 852600, targetUnit)
 
Status
Not open for further replies.
Top