944 {
946
948 {
950 if (!originalCaster)
951 {
952 return;
953 }
954
956 if (!properties)
957 {
958 return;
959 }
960
964 {
965 if (summon->IsInMap(caster))
966 {
967 summon->SetCreatorGUID(originalCaster->
GetGUID());
968 summon->HandleSpellClick(caster);
969 }
970 }
971 }
972 }
std::int32_t int32
Definition: Define.h:103
std::uint32_t uint32
Definition: Define.h:107
DBCStorage< SummonPropertiesEntry > sSummonPropertiesStore(SummonPropertiesfmt)
Definition: TemporarySummon.h:40
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
Map * GetMap() const
Definition: Object.h:531
TempSummon * SummonCreature(uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=nullptr, uint32 duration=0, WorldObject *summoner=nullptr, uint32 spellId=0, uint32 vehId=0, bool visibleBySummonerOnly=false)
Definition: Object.cpp:2163
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition: SpellInfo.h:393
int32 GetDuration() const
Definition: SpellInfo.cpp:2337
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:579
WorldLocation * GetHitDest()
Definition: SpellScript.cpp:504
Unit * GetOriginalCaster()
Definition: SpellScript.cpp:406
Unit * GetCaster()
Definition: SpellScript.cpp:401
Definition: DBCStructure.h:1909