mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
[7328] Implement new way of work for warlock player summoning spell 698. Required correct DB data. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -931,6 +931,7 @@ void GameObject::Use(Unit* user)
|
||||
// by default spell caster is user
|
||||
Unit* spellCaster = user;
|
||||
uint32 spellId = 0;
|
||||
bool triggered = false;
|
||||
|
||||
switch(GetGoType())
|
||||
{
|
||||
@@ -1174,6 +1175,13 @@ void GameObject::Use(Unit* user)
|
||||
return;
|
||||
|
||||
spellId = info->summoningRitual.spellId;
|
||||
if(spellId==62330) // GO store not existed spell, replace by expected
|
||||
{
|
||||
// spell have reagent and mana cost but it not expected use its
|
||||
// it triggered spell in fact casted at currently channeled GO
|
||||
spellId = 61993;
|
||||
triggered = true;
|
||||
}
|
||||
|
||||
// finish spell
|
||||
caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->SendChannelUpdate(0);
|
||||
@@ -1347,7 +1355,7 @@ void GameObject::Use(Unit* user)
|
||||
return;
|
||||
}
|
||||
|
||||
Spell *spell = new Spell(spellCaster, spellInfo, false);
|
||||
Spell *spell = new Spell(spellCaster, spellInfo, triggered);
|
||||
|
||||
// spell target is user of GO
|
||||
SpellCastTargets targets;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7327"
|
||||
#define REVISION_NR "7328"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
||||
Reference in New Issue
Block a user