DarkBen
New Member
- Joined
- Jan 15, 2010
- Messages
- 299
Hi,
I was wondering if i done it right.
I made a totem detection routine that will target totems and check if it?s CreatedBy is not null and if it has "Totem" or "Healing" in the name and if isHostile.
First case is if a totem is targeting me, most checkAdds() will add the Totem to the array of targets, but then i check if my current target is totem and wont cast DoTs or Spendable spells on it.
Second is for healing totens that wont target Me, so i do check if is createdBy is not num and if has the Totem/healing string.
Problem is it may end up targeting other mobs totens that is geting killed by other players.
Is there a best way to check if my target is really a totem (like a generic Check) and if is it that is Toggling my Combat() loop?
If i dont search for healing totem, my char gets on the Combat loop without target until the totem vanishes.
I was wondering if i done it right.
I made a totem detection routine that will target totems and check if it?s CreatedBy is not null and if it has "Totem" or "Healing" in the name and if isHostile.
First case is if a totem is targeting me, most checkAdds() will add the Totem to the array of targets, but then i check if my current target is totem and wont cast DoTs or Spendable spells on it.
Second is for healing totens that wont target Me, so i do check if is createdBy is not num and if has the Totem/healing string.
Problem is it may end up targeting other mobs totens that is geting killed by other players.
Is there a best way to check if my target is really a totem (like a generic Check) and if is it that is Toggling my Combat() loop?
If i dont search for healing totem, my char gets on the Combat loop without target until the totem vanishes.