maybe something like this would do the thing?
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 4aa95a5..11a8cac 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6532,8 +6532,8 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
}
// check if "Glyph of Raise Dead" ,corpse- or "Corpse Dust" is available
- bool canCast = p_caster->CanNoReagentCast(m_spellInfo) || FindCorpseUsing<MaNGOS::RaiseDeadObjectCheck>();
+ bool canCast = p_caster->CanNoReagentCast(m_spellInfo) || unitTarget->isDead() && unitTarget->GetCreatureType()==CREATURE_TYPE_HUMANOID;
if (!canCast && p_caster->HasItemCount(37201,1))
{
p_caster->DestroyItemCount(37201, 1, true);
canCast = true;
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index b04cf54..46ea551 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -463,9 +463,6 @@ WorldObject* Spell::FindCorpseUsing()
return result;
}
-// explicitly instantiate for use in SpellEffects.cpp
-template WorldObject* Spell::FindCorpseUsing<MaNGOS::RaiseDeadObjectCheck>();
-
void Spell::FillTargetMap()
{
// TODO: ADD the correct target FILLS!!!!!!