Added note on possible use of SQ mode

This commit is contained in:
Collin Smith 2019-03-28 16:43:28 -07:00
parent 5adc3e84e4
commit c9c5ee346b

View File

@ -761,6 +761,9 @@ public abstract class Entity implements Animation.AnimationListener {
final Skills.Entry skill = Riiablo.files.skills.get(spell);
byte tm = mode;
byte newMode = type.getMode(skill.anim);
// FIXME: NOTE: I'm think SQ (sequence) used by player spells are hard-coded and indicate
// something like cast + wait. It's possible this is used to block the player
// from using other spells, or somehow resetting the cooldown.
if (newMode == -1) newMode = type.getMode("SC");
boolean changed = sequence(newMode, getNeutralMode());
if (!changed) return false;