Code:
void Mob::BardPulse(uint16 spell_id, Mob *caster) {
static const int SELOS_5 = 717; // per stock peqdb
static const int SELOS_51 = 2605;
// travel song too?
bool is_selos = (spell_id == SELOS_5 || spell_id == SELOS_51);
if (is_selos && this->IsRooted())
this->BuffFadeByEffectDetrimental(SE_Root);
int buffs_i; //used later
for (buffs_i = 0; buffs_i < BUFF_COUNT; buffs_i++) {
if (is_selos && IsSnareSpell(buffs[buffs_i].spellid)) // possible a more elegant way, there is no IsSnared()
this->BuffFadeByEffectDetrimental(SE_MovementSpeed); // snare
// rest of buff checks