mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[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:
parent
47ef4eca32
commit
6fbf464786
3 changed files with 20 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue