[10956] Implement support triggered spells in SCRIPT_COMMAND_CAST_SPELL

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Schmoozerd 2011-01-04 04:14:12 +03:00 committed by VladimirMangos
parent 9174e5d085
commit 883e88fad5
5 changed files with 6 additions and 5 deletions

View file

@ -2397,7 +2397,7 @@ void Map::ScriptsProcess()
Unit* spellSource = (Unit*)cmdSource;
//TODO: when GO cast implemented, code below must be updated accordingly to also allow GO spell cast
spellSource->CastSpell(spellTarget, step.script->castSpell.spellId, false);
spellSource->CastSpell(spellTarget, step.script->castSpell.spellId, step.script->castSpell.flags & 0x04);
break;
}