Core/GameObjects: Implemented gathering nodes (gameobject type 50)
Port From (https://github.com/TrinityCore/TrinityCore/commit/1011cb73c92ddb90589452f70a1dd33830689e32)
This commit is contained in:
@@ -5242,6 +5242,9 @@ namespace Game.Spells
|
||||
lockId = go.GetGoInfo().GetLockId();
|
||||
if (lockId == 0)
|
||||
return SpellCastResult.BadTargets;
|
||||
|
||||
if (go.GetGoInfo().GetNotInCombat() != 0 && m_caster.ToUnit().IsInCombat())
|
||||
return SpellCastResult.AffectingCombat;
|
||||
}
|
||||
else if (itm != null)
|
||||
lockId = itm.GetTemplate().GetLockID();
|
||||
|
||||
Reference in New Issue
Block a user