taskmanager
New Member
- Joined
- Mar 18, 2014
- Messages
- 400
- Reaction score
- 1
Code:
/// <summary>
/// Returns how many stacks of a particular buff there are
/// </summary>
/// <param name="power"></param>
/// <returns></returns>
public static int GetBuffStacks(SNOPower power)
{
int stacks;
if (PlayerBuffs.TryGetValue((int)power, [COLOR="#FF0000"]out stacks[/COLOR]))
{
return stacks;
}
return 0;
}
can you tell me the red text what/how this work?
if i understand it correct, does it mean that if wd has 5 stacks of soul harvest (+5, true or false)
-if false, < 5 stacks it would cast soul harvest again?
-if true, > 5 stacks it wouldn't cast soul harvest again?
im trying to get wd to stop casting soul harvest if stacks is at max 5.