diff options
author | megamage <none@none> | 2009-05-02 19:24:22 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-02 19:24:22 -0500 |
commit | 122d94494523bd9e7fe8fabbacd11c08dbaba8f8 (patch) | |
tree | 54a52abd8d6bb27f72f9090a4e9fd78d14f69cab /src/game/Object.cpp | |
parent | abe9b27ee44dd8484b8b8992bba742480f4ab33a (diff) |
*Update summon system.
*Fix the bug that shaman cannot summon fire elemental.
*Fix the bug that totem meters cannot be displayed.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index af024de0896..cec9c50b71e 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1614,6 +1614,8 @@ TempSummon *Map::SummonCreature(uint32 entry, float x, float y, float z, float a || properties->Type == SUMMON_TYPE_VEHICLE || properties->Type == SUMMON_TYPE_VEHICLE2) mask = SUMMON_MASK_VEHICLE; + else if(properties->Type == SUMMON_TYPE_MINIPET) + mask = SUMMON_MASK_MINION; } uint32 phase = PHASEMASK_NORMAL, team = 0; @@ -1630,6 +1632,7 @@ TempSummon *Map::SummonCreature(uint32 entry, float x, float y, float z, float a case SUMMON_MASK_SUMMON: summon = new TempSummon (properties, summoner); break; case SUMMON_MASK_GUARDIAN: summon = new Guardian (properties, summoner); break; case SUMMON_MASK_TOTEM: summon = new Totem (properties, summoner); break; + case SUMMON_MASK_MINION: summon = new Minion (properties, summoner); break; default: return NULL; } if(!summon->Create(objmgr.GenerateLowGuid(HIGHGUID_UNIT), this, phase, entry, team)) @@ -1776,7 +1779,7 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy pet->SetUInt32Value(UNIT_FIELD_BYTES_1,0); pet->InitStatsForLevel(getLevel()); - SetGuardian(pet, true); + SetMinion(pet, true); switch(petType) { |