All pastes #1242395 Raw Edit

[patch]Sacrifice not Autocastabl

public diff v1 · immutable
#1242395 ·published 2008-11-01 15:26 UTC
rendered paste body
diff --git a/src/game/Pet.cpp b/src/game/Pet.cppindex 9f9f12d..9be4882 100644--- a/src/game/Pet.cpp+++ b/src/game/Pet.cpp@@ -1653,6 +1653,18 @@ void Pet::ToggleAutocast(uint32 spellid, bool apply)     if(IsPassiveSpell(spellid))         return; +	// Sacrifice is not autocastable+	switch(spellid) {+		case 7812:	// Sacrifice Rank 1+		case 19438:	// Sacrifice Rank 2+		case 19440:	// Sacrifice Rank 3+		case 19441:	// Sacrifice Rank 4+		case 19442:	// Sacrifice Rank 5+		case 19443:	// Sacrifice Rank 6+		case 27273:	// Sacrifice Rank 7+			return;+	}+     PetSpellMap::const_iterator itr = m_spells.find((uint16)spellid);      int i;