• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

problem with ownership

Status
Not open for further replies.
Level 2
Joined
Jan 27, 2015
Messages
8
Hey guys,

now to my problem... i want that the ownership changes from neutral passiv to player 11 DG. when i do a normal whit with (Press a and target unit) it works but when i use a spell the monster will not change the ownership to dk i dont know how to fix it can some one help me ?

this is my trigger:

Event
  • Unit - A unit owned of neutral passiv is underattack
  • (Triggering unit) equal (Attacked unit)
Action
  • Unit - Change ownership of (Triggering unit) to Player 11 (Darkgreen and change colour)
i tryed a lot to change ownership with a spell but it dont work hope someone can help me thx :)

i think its easy but i cant fix it :D
 
Level 28
Joined
Sep 26, 2009
Messages
2,515
If you mean that a UNIT_A uses spell (let's call the spell Mind Control) on UNIT_B and the trigger is supposed to change the owner of UNIT_B to the owner of UNIT_A, then the following shall suffice:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Mind Control
    • Actions
      • Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
 
Status
Not open for further replies.
Top