Thread: Spells: Selos Issue
View Single Post
  #22  
Old 12-10-2011, 06:45 PM
Truth Truth is offline
Banned


Join Date: Nov 2011
Location: h00t
Posts: 842
Send a message via ICQ to Truth Send a message via AIM to Truth Send a message via MSN to Truth Send a message via Yahoo to Truth
Default

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
Reply With Quote