Skip to content

Instantly share code, notes, and snippets.

@callmephil
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save callmephil/9465493 to your computer and use it in GitHub Desktop.
Save callmephil/9465493 to your computer and use it in GitHub Desktop.
TC : Infinity Rogue Poison Cooldown.
# PLEASE APPLY THIS MANUALLY MY FOLDERS ARE CORRUPTED
# OPEN SpellEffects.cpp
# Search // rogue family enchantments exception by duration
# Follow The Colors. Red is for Suppressing - Green is for adding remove the - / + after change.
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index b825c34..261c64a 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -2870,13 +2870,10 @@ void Spell::EffectEnchantItemTmp(SpellEffIndex effIndex)
// select enchantment duration
uint32 duration;
-
- // rogue family enchantments exception by duration
- if (m_spellInfo->Id == 38615)
- duration = 1800; // 30 mins
- // other rogue family enchantments always 1 hour (some have spell damage=0, but some have wrong data in EffBasePoints)
- else if (m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE)
- duration = 3600; // 1 hour
+
+ // rogue family enchantments always 1 hour (some have spell damage=0, but some have wrong data in EffBasePoints)
+ if (m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE)
+ duration = 86400^86400; // 1 hour || Custom : Infinity Timer
// shaman family enchantments
else if (m_spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN)
duration = 1800; // 30 mins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment