[11073] Prevent applying SPELLMOD_DURATION for summons with unlimited duration.

Fixes summon duration of spell 70908 in combination with talent 44557 and ranks.
This commit is contained in:
Lynx3d 2011-01-26 02:56:59 +01:00
parent 47ef4eca32
commit 6fbf464786
3 changed files with 20 additions and 15 deletions

View file

@ -1908,6 +1908,8 @@ bool Pet::IsPermanentPetFor(Player* owner)
case SUMMON_PET:
switch(owner->getClass())
{
// oddly enough, Mage's Water Elemental is still treated as temporary pet with Glyph of Eternal Water
// i.e. does not unsummon at mounting, gets dismissed at teleport etc.
case CLASS_WARLOCK:
return GetCreatureInfo()->type == CREATURE_TYPE_DEMON;
case CLASS_DEATH_KNIGHT: