RedRussian
New Member
- Joined
- Jun 26, 2014
- Messages
- 6
- Reaction score
- 0
Hi!
After Honorbuddy is attached to an instance of the game, LocalPlayer (accessible through StyxWoW.Me) keeps some of the original character's properties even after relogging on another character. These properties include (but the list may not be limited to) Name and faction.
How to reproduce:
0) Attach Honorbuddy while on the character A.
1) Relog to the character B.
2) Type "Log(StyxWoW.Me.Name);" in the console. It will print the name of the character A.
The problem is that the property of faction is also kept. That is, if you log on a toon which belongs to the opposing faction, other players will have their IsHostile property reversed. This may lead to problems with targeting (and it does so in my botbase!). Treating enemies as friends and vice versa isn't good at all.
How to reproduce:
0) The same
1) Log on the character B which belongs to the opposing faction
2) Target some friendly player and type "Log(StyxWow.Me.CurrentTarget.IsHostile);" in the console. It will print "True" whilst the correct result is "False".
After Honorbuddy is attached to an instance of the game, LocalPlayer (accessible through StyxWoW.Me) keeps some of the original character's properties even after relogging on another character. These properties include (but the list may not be limited to) Name and faction.
How to reproduce:
0) Attach Honorbuddy while on the character A.
1) Relog to the character B.
2) Type "Log(StyxWoW.Me.Name);" in the console. It will print the name of the character A.
The problem is that the property of faction is also kept. That is, if you log on a toon which belongs to the opposing faction, other players will have their IsHostile property reversed. This may lead to problems with targeting (and it does so in my botbase!). Treating enemies as friends and vice versa isn't good at all.
How to reproduce:
0) The same
1) Log on the character B which belongs to the opposing faction
2) Target some friendly player and type "Log(StyxWow.Me.CurrentTarget.IsHostile);" in the console. It will print "True" whilst the correct result is "False".
Last edited: