[11662] Spell 37433 targeting only non-swiming players.

Original patch provided by anti-freak.
This commit is contained in:
VladimirMangos 2011-06-22 18:18:48 +04:00
parent 245f79dc6b
commit 0413ff9c34
2 changed files with 9 additions and 1 deletions

View file

@ -6790,6 +6790,14 @@ bool Spell::CheckTarget( Unit* target, SpellEffectIndex eff )
break;
}
switch (m_spellInfo->Id)
{
case 37433: // Spout (The Lurker Below), only players affected if its not in water
if (target->GetTypeId() != TYPEID_PLAYER || target->IsInWater())
return false;
default: break;
}
return true;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11661"
#define REVISION_NR "11662"
#endif // __REVISION_NR_H__