mopysworld
New Member
- Joined
- Jan 15, 2010
- Messages
- 158
- Reaction score
- 2
I hate having to ask this but having a issue getting "The Art of War" to be detected correctly. All the other Buff are working correctly using the HasAura(string name). I am still currently coding in the "Legacy style" due to me still trying to figure out how BT CC's work.
This code just constantly spams Exorcism even if I don't have the buff. In theory it should only fire when the buff is active.
No Errors in Debug Log
So figured it wasn't reading the string right lets try setting it up by the ID listed on wowhead. While it does fire correctly when the buff is active and cast exorcism only when the buff is active. It will not continue on with the rest of the code. Probably not using the code correctly in this snippet but never had to search by ID before.
Debug log is spitting out everytime it get to the call.
"System.NullReferenceException: Object reference not set to an instance of an object."
Did some quick searches and see there are a couple of complaint in the current paladin releases having this issue yet with no resolution. Also didn't find anything on the bugtracker specifically tied to "The Art of War" detection. There were a couple of "System.NullReferenceException: Object reference not set to an instance of an object." hits but the only one verbatim was to a warrior issue.
Any suggestions?
This code just constantly spams Exorcism even if I don't have the buff. In theory it should only fire when the buff is active.
No Errors in Debug Log

Code:
void Exo()
{
if (Me.HasAura("The Art of War"))
{
Core.Cast("Exorcism");
}
}
So figured it wasn't reading the string right lets try setting it up by the ID listed on wowhead. While it does fire correctly when the buff is active and cast exorcism only when the buff is active. It will not continue on with the rest of the code. Probably not using the code correctly in this snippet but never had to search by ID before.
Debug log is spitting out everytime it get to the call.
"System.NullReferenceException: Object reference not set to an instance of an object."
Code:
void Exo()
{
// The Art of War - AuraById(59578) according to wowhead ????
if (Me.GetAuraById(59578).IsActive)
{
Core.Cast("Exorcism");
}
}
Did some quick searches and see there are a couple of complaint in the current paladin releases having this issue yet with no resolution. Also didn't find anything on the bugtracker specifically tied to "The Art of War" detection. There were a couple of "System.NullReferenceException: Object reference not set to an instance of an object." hits but the only one verbatim was to a warrior issue.
Any suggestions?