Originally Posted by Xzael
actions+=/haunt,debuff=1/corruption/curse_of_agony/unstable_affliction/haunt
actions+=/drain_soul,health_percentage<=25,interrupt=1/shadow_bolt/life_tap
How does it prioritize spells, or is that based in the Simulationcraft logic, and this is just a list of abilities it will use (I'm assuming it's not since haunt is listed twice)? Also, what does the "debuff" mean in "haunt,debuff=1", any why don't the other abilities have that parameter?
|
Well, I started on this only recently so take this with slight reserve, but:
- logic is expressed thru *.simcraft files, not fixed internaly in simulator (well, at least in above example)
- for each step in simulation when player is able to cast anything, simulator check 'actions" one by one, in order they are stated in simcraft file. When he finds first one that is "available", he execute it
- "Available" action means that you have enough resources(mana) for it, that it is not on CD or already applied on target (if DoT)
- in addition to that, sometimes you want to use more restrictions. For example, you dont want to use drain_soul before execute, so you put additional condition ",health_percentage<=25". Without it, it would be used whole fight
As for possible options, there are two types: those available for any spell, and those specific for certain type of spell.
Among those available to all spells you have "rank", "seq","sync", "time>","time<", "time_to_die>","time_to_die<", "health_percentage>""health_percentage<","bloodlust". You can guess usage of most by name.
Those specific for spells are for example "interrupt=" and "debuff=" in above example, and each works specifically for its own spell. That doesnt mean that spell XYZ can not also have "debuff=" option, but it means it can mean or behave differently ;p
In this particular case, I *think* that debuff=1 restriction means "cast Haunt only if debuff is about to expire (or expired) on mob". In this example, that is different from just "/haunt" since second one means "use haunt as soon as available", which is right after 8sec CD. First one means "use it before 12sec debuff goes out". So you basically told simulator:
If haunt debuff is about to expire, cast haunt. otherwise cast Corr or CoA or UA (whichever is not on mob). If they are all already on mob, then cast normal haunt if its 8sec passed. If haunt is still on 8sec CD, cast Shadow Bolt , unless mob is under 25% in which case cast Drain Soul instead of SB. And other option "Interrupt=1" means "if any spell listed before Drain Soul in actions is ready, stop draining and check again actions in order".