Fixed quest Catch and Release, some fixes for Tag Murloc spell.

--HG--
branch : trunk
This commit is contained in:
Astellar
2010-01-10 22:37:31 +03:00
parent ef24d90472
commit 40f70a8594
3 changed files with 14 additions and 3 deletions
+6 -2
View File
@@ -5075,10 +5075,14 @@ SpellCastResult Spell::CheckCast(bool strict)
//custom check //custom check
switch(m_spellInfo->Id) switch(m_spellInfo->Id)
{ {
case SPELL_TAG_MURLOC_30877: // Tag Murloc
if (!m_targets.getUnitTarget() || (m_targets.getUnitTarget() && (m_targets.getUnitTarget()->HasAura(SPELL_TAG_MURLOC_30877) || m_targets.getUnitTarget()->GetTypeId() != TYPEID_UNIT || (m_targets.getUnitTarget()->GetTypeId() == TYPEID_UNIT && ((Creature*)m_targets.getUnitTarget())->GetEntry() != 17326 ))))// Tag Murloc, Blacksilt Scout case 30877:
{
Unit* target = m_targets.getUnitTarget();
if (!target || target->GetEntry() != 17326)
return SPELL_FAILED_BAD_TARGETS; return SPELL_FAILED_BAD_TARGETS;
break; break;
}
case 61336: case 61336:
if(m_caster->GetTypeId() != TYPEID_PLAYER || !((Player*)m_caster)->IsInFeralForm()) if(m_caster->GetTypeId() != TYPEID_PLAYER || !((Player*)m_caster)->IsInFeralForm())
return SPELL_FAILED_ONLY_SHAPESHIFT; return SPELL_FAILED_ONLY_SHAPESHIFT;
+7
View File
@@ -5681,6 +5681,13 @@ void AuraEffect::HandleAuraDummy(AuraApplication const * aurApp, uint8 mode, boo
target->RemoveAurasDueToSpell(spellId); target->RemoveAurasDueToSpell(spellId);
break; break;
} }
// Tag Murloc
case 30877:
{
// Tag/untag Blacksilt Scout
target->SetEntry(apply ? 17654 : 17326);
break;
}
//Summon Fire Elemental //Summon Fire Elemental
case 40133: case 40133:
{ {
+1 -1
View File
@@ -767,7 +767,7 @@ bool SpellMgr::_isPositiveEffect(uint32 spellId, uint32 effIndex, bool deep) con
case 50524: // Runic Power Feed case 50524: // Runic Power Feed
return false; return false;
case 12042: // Arcane Power case 12042: // Arcane Power
case SPELL_TAG_MURLOC_30877: // Tag Murloc case 30877: // Tag Murloc
return true; return true;
} }