mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Fix the bug that players couldn't talk with Spirit Healer
--HG-- branch : trunk
This commit is contained in:
@@ -2238,13 +2238,13 @@ void Spell::cancel()
|
||||
|
||||
void Spell::cast(bool skipCheck)
|
||||
{
|
||||
if(m_targets.getUnitTarget() && !m_targets.getUnitTarget()->isVisibleForOrDetect(m_caster, true))
|
||||
if(m_targets.getUnitTarget() && m_targets.getUnitTarget()->isAlive() && !m_targets.getUnitTarget()->isVisibleForOrDetect(m_caster, true))
|
||||
{
|
||||
cancel();
|
||||
return;
|
||||
}
|
||||
SetExecutedCurrently(true);
|
||||
|
||||
SetExecutedCurrently(true);
|
||||
uint8 castResult = 0;
|
||||
|
||||
// update pointers base at GUIDs to prevent access to non-existed already object
|
||||
|
||||
Reference in New Issue
Block a user