Encapsulate UNIT_CHANNEL_* fields

This commit is contained in:
hondacrx
2017-11-17 16:23:55 -05:00
parent aa0ec9a021
commit 6a0ae0c3a6
4 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -1526,7 +1526,8 @@ namespace Game.BattleGrounds
//todo Fix display here
// creature.SetVisibleAura(0, SPELL_SPIRIT_HEAL_CHANNEL);
// casting visual effect
creature.SetUInt32Value(UnitFields.ChannelSpell, BattlegroundConst.SpellSpiritHealChannel);
creature.SetChannelSpellId(BattlegroundConst.SpellSpiritHealChannel);
creature.SetChannelSpellXSpellVisualId(BattlegroundConst.SpellSpiritHealChannelVisual);
// correct cast speed
creature.SetFloatValue(UnitFields.ModCastSpeed, 1.0f);
creature.SetFloatValue(UnitFields.ModCastHaste, 1.0f);