KsuCoolCat
Member
- Joined
- Jan 16, 2012
- Messages
- 99
- Reaction score
- 2
just a quick cursory glance at the code indicates that you didn't have a pet out which was causing the calls to Me.Pet to return null.
this could probably easily be fixed by putting the following check in before checking its auras.
Code:
new Decorator(ret => rank == 3 && ![U]Me.Pet[/U].ActiveAuras.ContainsKey("Dark Transformation"),
new Decorator(
ret =>
![U]Me.Pet[/U].ActiveAuras.ContainsKey("Shadow Infusion") ||
[U]Me.Pet[/U].ActiveAuras["Shadow Infusion"].StackCount < 5,
Spell.CastSpell("Death Coil", ret => CurTarget, ret => true,
"Death Coil to maintain Shadow Infusion stacks")
)
),
this could probably easily be fixed by putting the following check in before checking its auras.
Code:
new Decorator(ret => rank == 3 && Me.Pet != null && !Me.Pet.ActiveAuras.ContainsKey("Dark Transformation"),
new Decorator(
ret =>
Me.Pet != null &&
(
!Me.Pet.ActiveAuras.ContainsKey("Shadow Infusion") ||
Me.Pet.ActiveAuras["Shadow Infusion"].StackCount < 5
),
Spell.CastSpell("Death Coil", ret => CurTarget, ret => true,
"Death Coil to maintain Shadow Infusion stacks")
)
),
Last edited: