Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dofile('data/colossusLib.lua')
- -- 12995 left --
- -- 12997 right --
- local hand = {12995, 12997}
- function onCastSpell(creature, variant)
- if spellExecuted then
- return false
- end
- if Game.getStorageValue(colossusAwakenGlobalStorage) ~= 1 then
- local creaturePos = creature:getPosition()
- local monTable = {
- {monName = 'Colossus LH', pos = Position(creaturePos.x - 2, creaturePos.y + 2, creaturePos.z)},
- {monName = 'Colossus RH', pos = Position(creaturePos.x + 3, creaturePos.y + 2, creaturePos.z)}
- }
- local monster
- for i = 1, #monTable do
- monster = Game.createMonster(monTable[i].monName, monTable[i].pos, false, true)
- monster:setMaster(creature)
- end
- Game.setStorageValue(colossusAwakenGlobalStorage, 1)
- return true
- end
- local summons = creature:getSummons()
- if #summons == 0 then
- return false
- end
- local chance = math.random(100)
- for i = 1, #summons do
- doCastMove(summons[i]:getId(), chance, hand[i])
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement