Ir para conteúdo

[Encerrado] [Encerrado] [DXP] 2º Bug mais critico do DXP


Josegvb

Posts Recomendados

Este erro acontece apenas com magias do tipo elétrico em tipos imunes? Ou, por exemplo, spammar magias psíquicas em tipo dark ou terrestres em tipo voador também acaba causando dano? Isto só acontece spammando magias iguais (temos que considerar que, se for o caso, jogadores normais não terão a liberdade de usar magias sem cooldown)? Por enquanto, este é o único problema?

Após responder estas perguntas, peço que faça o teste imprimindo as informações conforme indiquei no meu primeiro comentário desta página (mantendo, contudo, as mudanças que fizemos posteriormente).

Editado por zipter98
Link para o comentário
Compartilhar em outros sites

3 minutos atrás, zipter98 disse:

Este erro acontece apenas com magias do tipo elétrico em tipos imunes? Ou, por exemplo, spammar magias psíquicas em tipo dark ou terrestres em tipo voador também acaba causando dano? Por enquanto, este é o único problema?

Após responder estas perguntas, peço que faça o teste imprimindo as informações conforme indiquei no meu primeiro comentário desta página (mantendo, contudo, as mudanças que fizemos posteriormente).

 

Fiz teste usando ursaring contra gengar selvagem (tava batendo melee nele n sei pq)

spammei tds as spells normals do ursaring e só bugou com o Fury Swipes

Spoiler
[15/12/2016 18:59:26] Entrando no escopo...[15/12/2016 18:59:26] Valor da storage: melee[15/12/2016 18:59:27] Pokemon atacante: Gengar[15/12/2016 18:59:27] Pokemon defensor: Ursaring[15/12/2016 18:59:27] Entrando no escopo de MELEE...[15/12/2016 18:59:27] Value antes de getEffectvineCombat: -76[15/12/2016 18:59:27] Value depois de getEffectvineCombat: -76[15/12/2016 18:59:27] Dano fica: -76[15/12/2016 18:59:28] Entrando no escopo...[15/12/2016 18:59:28] Valor da storage: Fury Swipes[15/12/2016 18:59:28] Pokemon atacante: Ursaring[15/12/2016 18:59:28] Pokemon defensor: Gengar[15/12/2016 18:59:28] Entrando no escopo...[15/12/2016 18:59:28] Valor da storage: melee[15/12/2016 18:59:28] Pokemon atacante: Ursaring[15/12/2016 18:59:28] Pokemon defensor: Gengar[15/12/2016 18:59:28] Entrando no escopo de MELEE...[15/12/2016 18:59:28] Value antes de getEffectvineCombat: -82[15/12/2016 18:59:28] Value depois de getEffectvineCombat: -82[15/12/2016 18:59:28] Dano fica: -82[15/12/2016 18:59:28] Entrando no escopo...[15/12/2016 18:59:28] Valor da storage: Fury Swipes[15/12/2016 18:59:28] Pokemon atacante: Ursaring[15/12/2016 18:59:28] Pokemon defensor: Gengar[15/12/2016 18:59:28] Entrando no escopo...[15/12/2016 18:59:29] Valor da storage: Dark Eye[15/12/2016 18:59:29] Pokemon atacante: Gengar[15/12/2016 18:59:29] Pokemon defensor: Ursaring[15/12/2016 18:59:29] Entrando no escopo...[15/12/2016 18:59:29] Valor da storage: Fury Swipes[15/12/2016 18:59:29] Pokemon atacante: Ursaring[15/12/2016 18:59:29] Pokemon defensor: Gengar[15/12/2016 18:59:29] Entrando no escopo...[15/12/2016 18:59:29] Valor da storage: Fury Swipes[15/12/2016 18:59:29] Pokemon atacante: Ursaring[15/12/2016 18:59:29] Pokemon defensor: Gengar[15/12/2016 18:59:29] Entrando no escopo...[15/12/2016 18:59:29] Valor da storage: Fury Swipes[15/12/2016 18:59:29] Pokemon atacante: Ursaring[15/12/2016 18:59:29] Pokemon defensor: Gengar[15/12/2016 18:59:29] Entrando no escopo...[15/12/2016 18:59:29] Valor da storage: Fury Swipes[15/12/2016 18:59:29] Pokemon atacante: Ursaring[15/12/2016 18:59:29] Pokemon defensor: Gengar[15/12/2016 18:59:30] Entrando no escopo...[15/12/2016 18:59:30] Valor da storage: Fury Swipes[15/12/2016 18:59:30] Pokemon atacante: Ursaring[15/12/2016 18:59:30] Pokemon defensor: Gengar[15/12/2016 18:59:30] Entrando no escopo...[15/12/2016 18:59:30] Valor da storage: Fury Swipes[15/12/2016 18:59:30] Pokemon atacante: Ursaring[15/12/2016 18:59:30] Pokemon defensor: Gengar[15/12/2016 18:59:30] Entrando no escopo...[15/12/2016 18:59:30] Valor da storage: Fury Swipes[15/12/2016 18:59:30] Pokemon atacante: Ursaring[15/12/2016 18:59:30] Pokemon defensor: Gengar[15/12/2016 18:59:30] Entrando no escopo...[15/12/2016 18:59:30] Valor da storage: melee[15/12/2016 18:59:30] Pokemon atacante: Ursaring[15/12/2016 18:59:30] Pokemon defensor: Gengar[15/12/2016 18:59:30] Entrando no escopo de MELEE...[15/12/2016 18:59:30] Value antes de getEffectvineCombat: -1701[15/12/2016 18:59:30] Value depois de getEffectvineCombat: -1701[15/12/2016 18:59:30] Dano fica: -1701[15/12/2016 18:59:31] Entrando no escopo...[15/12/2016 18:59:31] Valor da storage: Fury Swipes[15/12/2016 18:59:31] Pokemon atacante: Ursaring[15/12/2016 18:59:31] Pokemon defensor: Gengar[15/12/2016 18:59:31] Entrando no escopo...[15/12/2016 18:59:31] Valor da storage: melee[15/12/2016 18:59:31] Pokemon atacante: Gengar[15/12/2016 18:59:31] Pokemon defensor: Ursaring[15/12/2016 18:59:31] Entrando no escopo de MELEE...[15/12/2016 18:59:31] Value antes de getEffectvineCombat: -80[15/12/2016 18:59:31] Value depois de getEffectvineCombat: -80[15/12/2016 18:59:31] Dano fica: -80[15/12/2016 18:59:31] Entrando no escopo...[15/12/2016 18:59:31] Valor da storage: Night Shade[15/12/2016 18:59:31] Pokemon atacante: Gengar[15/12/2016 18:59:31] Pokemon defensor: Ursaring[15/12/2016 18:59:31] Entrando no escopo...[15/12/2016 18:59:31] Valor da storage: Fury Swipes[15/12/2016 18:59:31] Pokemon atacante: Ursaring[15/12/2016 18:59:31] Pokemon defensor: Gengar[15/12/2016 18:59:31] Entrando no escopo...[15/12/2016 18:59:31] Valor da storage: Fury Swipes[15/12/2016 18:59:31] Pokemon atacante: Ursaring[15/12/2016 18:59:31] Pokemon defensor: Gengar

 

agora usando um shiny gengar contra um ursaring selvagem bugou a shadow ball

Spoiler
[15/12/2016 18:58:38] Entrando no escopo...[15/12/2016 18:58:38] Valor da storage: Shadow Ball[15/12/2016 18:58:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:38] Pokemon defensor: Ursaring[15/12/2016 18:58:39] Entrando no escopo...[15/12/2016 18:58:39] Valor da storage: Shadow Ball[15/12/2016 18:58:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:39] Pokemon defensor: Ursaring[15/12/2016 18:58:39] Entrando no escopo...[15/12/2016 18:58:39] Valor da storage: Shadow Ball[15/12/2016 18:58:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:39] Pokemon defensor: Ursaring[15/12/2016 18:58:39] Entrando no escopo...[15/12/2016 18:58:39] Valor da storage: Shadow Ball[15/12/2016 18:58:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:39] Pokemon defensor: Ursaring[15/12/2016 18:58:39] Entrando no escopo...[15/12/2016 18:58:39] Valor da storage: Shadow Ball[15/12/2016 18:58:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:39] Pokemon defensor: Ursaring[15/12/2016 18:58:40] Entrando no escopo...[15/12/2016 18:58:40] Valor da storage: Shadow Ball[15/12/2016 18:58:40] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:40] Pokemon defensor: Ursaring[15/12/2016 18:58:40] Entrando no escopo...[15/12/2016 18:58:40] Valor da storage: Shadow Ball[15/12/2016 18:58:40] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:40] Pokemon defensor: Ursaring[15/12/2016 18:58:40] Entrando no escopo...[15/12/2016 18:58:40] Valor da storage: melee[15/12/2016 18:58:40] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:40] Pokemon defensor: Ursaring[15/12/2016 18:58:40] Entrando no escopo de MELEE...[15/12/2016 18:58:40] Value antes de getEffectvineCombat: -84[15/12/2016 18:58:40] Value depois de getEffectvineCombat: -84[15/12/2016 18:58:40] Dano fica: -84[15/12/2016 18:58:40] Entrando no escopo...[15/12/2016 18:58:40] Valor da storage: Shadow Ball[15/12/2016 18:58:40] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:40] Pokemon defensor: Ursaring[15/12/2016 18:58:40] Entrando no escopo...[15/12/2016 18:58:40] Valor da storage: Shadow Ball[15/12/2016 18:58:40] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:41] Pokemon defensor: Ursaring[15/12/2016 18:58:41] Entrando no escopo...[15/12/2016 18:58:41] Valor da storage: Shadow Ball[15/12/2016 18:58:41] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:41] Pokemon defensor: Ursaring[15/12/2016 18:58:41] Entrando no escopo...[15/12/2016 18:58:41] Valor da storage: Shadow Ball[15/12/2016 18:58:41] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:41] Pokemon defensor: Ursaring[15/12/2016 18:58:41] Entrando no escopo...[15/12/2016 18:58:41] Valor da storage: Shadow Ball[15/12/2016 18:58:41] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:41] Pokemon defensor: Ursaring[15/12/2016 18:58:42] Entrando no escopo...[15/12/2016 18:58:42] Valor da storage: Shadow Ball[15/12/2016 18:58:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:42] Pokemon defensor: Ursaring[15/12/2016 18:58:42] Entrando no escopo...[15/12/2016 18:58:42] Valor da storage: Shadow Ball[15/12/2016 18:58:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:42] Pokemon defensor: Ursaring[15/12/2016 18:58:42] Entrando no escopo...[15/12/2016 18:58:42] Valor da storage: Shadow Ball[15/12/2016 18:58:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:42] Pokemon defensor: Ursaring[15/12/2016 18:58:42] Entrando no escopo...[15/12/2016 18:58:42] Valor da storage: melee[15/12/2016 18:58:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:42] Pokemon defensor: Ursaring[15/12/2016 18:58:42] Entrando no escopo de MELEE...[15/12/2016 18:58:42] Value antes de getEffectvineCombat: -1930[15/12/2016 18:58:42] Value depois de getEffectvineCombat: -1930[15/12/2016 18:58:42] Dano fica: -1930[15/12/2016 18:58:42] Entrando no escopo...[15/12/2016 18:58:42] Valor da storage: Shadow Ball[15/12/2016 18:58:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:42] Pokemon defensor: Ursaring[15/12/2016 18:58:43] Entrando no escopo...[15/12/2016 18:58:43] Valor da storage: Shadow Ball[15/12/2016 18:58:43] Pokemon atacante: Shiny Gengar[15/12/2016 18:58:43] Pokemon defensor: Ursaring

 

Shadow punch:

Spoiler
[15/12/2016 18:57:20] Entrando no escopo...[15/12/2016 18:57:20] Valor da storage: melee[15/12/2016 18:57:20] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:20] Pokemon defensor: Ursaring[15/12/2016 18:57:20] Entrando no escopo de MELEE...[15/12/2016 18:57:20] Value antes de getEffectvineCombat: -63[15/12/2016 18:57:20] Value depois de getEffectvineCombat: -63[15/12/2016 18:57:20] Dano fica: -63[15/12/2016 18:57:20] Entrando no escopo...[15/12/2016 18:57:20] Valor da storage: Shadow Punch[15/12/2016 18:57:20] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:20] Pokemon defensor: Ursaring[15/12/2016 18:57:21] Entrando no escopo...[15/12/2016 18:57:21] Valor da storage: Shadow Punch[15/12/2016 18:57:21] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:21] Pokemon defensor: Ursaring[15/12/2016 18:57:21] Entrando no escopo...[15/12/2016 18:57:21] Valor da storage: melee[15/12/2016 18:57:21] Pokemon atacante: Ursaring[15/12/2016 18:57:21] Pokemon defensor: Shiny Gengar[15/12/2016 18:57:21] Entrando no escopo de MELEE...[15/12/2016 18:57:21] Value antes de getEffectvineCombat: -64[15/12/2016 18:57:21] Value depois de getEffectvineCombat: -64[15/12/2016 18:57:21] Dano fica: -64[15/12/2016 18:57:21] Entrando no escopo...[15/12/2016 18:57:21] Valor da storage: Shadow Punch[15/12/2016 18:57:21] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:21] Pokemon defensor: Ursaring[15/12/2016 18:57:21] Entrando no escopo...[15/12/2016 18:57:21] Valor da storage: Shadow Punch[15/12/2016 18:57:21] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:21] Pokemon defensor: Ursaring[15/12/2016 18:57:22] Entrando no escopo...[15/12/2016 18:57:22] Valor da storage: Shadow Punch[15/12/2016 18:57:22] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:22] Pokemon defensor: Ursaring[15/12/2016 18:57:22] Entrando no escopo...[15/12/2016 18:57:22] Valor da storage: melee[15/12/2016 18:57:22] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:22] Pokemon defensor: Ursaring[15/12/2016 18:57:22] Entrando no escopo de MELEE...[15/12/2016 18:57:22] Value antes de getEffectvineCombat: -74[15/12/2016 18:57:22] Value depois de getEffectvineCombat: -74[15/12/2016 18:57:22] Dano fica: -74[15/12/2016 18:57:22] Entrando no escopo...[15/12/2016 18:57:22] Valor da storage: Shadow Punch[15/12/2016 18:57:22] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:22] Pokemon defensor: Ursaring[15/12/2016 18:57:22] Entrando no escopo...[15/12/2016 18:57:22] Valor da storage: Shadow Punch[15/12/2016 18:57:22] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:22] Pokemon defensor: Ursaring[15/12/2016 18:57:22] Entrando no escopo...[15/12/2016 18:57:22] Valor da storage: Shadow Punch[15/12/2016 18:57:22] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:22] Pokemon defensor: Ursaring[15/12/2016 18:57:23] Entrando no escopo...[15/12/2016 18:57:23] Valor da storage: Shadow Punch[15/12/2016 18:57:23] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:23] Pokemon defensor: Ursaring[15/12/2016 18:57:23] Entrando no escopo...[15/12/2016 18:57:23] Valor da storage: Shadow Punch[15/12/2016 18:57:23] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:23] Pokemon defensor: Ursaring[15/12/2016 18:57:23] Entrando no escopo...[15/12/2016 18:57:23] Valor da storage: Shadow Punch[15/12/2016 18:57:23] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:23] Pokemon defensor: Ursaring[15/12/2016 18:57:23] Entrando no escopo...[15/12/2016 18:57:23] Valor da storage: melee[15/12/2016 18:57:23] Pokemon atacante: Ursaring[15/12/2016 18:57:23] Pokemon defensor: Shiny Gengar[15/12/2016 18:57:23] Entrando no escopo de MELEE...[15/12/2016 18:57:23] Value antes de getEffectvineCombat: -89[15/12/2016 18:57:23] Value depois de getEffectvineCombat: -89[15/12/2016 18:57:23] Dano fica: -89[15/12/2016 18:57:23] Entrando no escopo...[15/12/2016 18:57:23] Valor da storage: Shadow Punch[15/12/2016 18:57:23] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:23] Pokemon defensor: Ursaring[15/12/2016 18:57:24] Entrando no escopo...[15/12/2016 18:57:24] Valor da storage: Shadow Punch[15/12/2016 18:57:24] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:24] Pokemon defensor: Ursaring[15/12/2016 18:57:24] Entrando no escopo...[15/12/2016 18:57:24] Valor da storage: melee[15/12/2016 18:57:24] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:24] Pokemon defensor: Ursaring[15/12/2016 18:57:24] Entrando no escopo de MELEE...[15/12/2016 18:57:24] Value antes de getEffectvineCombat: -2269[15/12/2016 18:57:24] Value depois de getEffectvineCombat: -2269[15/12/2016 18:57:24] Dano fica: -2269[15/12/2016 18:57:24] Entrando no escopo...[15/12/2016 18:57:24] Valor da storage: Shadow Punch[15/12/2016 18:57:24] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:24] Pokemon defensor: Ursaring[15/12/2016 18:57:24] Entrando no escopo...[15/12/2016 18:57:24] Valor da storage: Shadow Punch[15/12/2016 18:57:24] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:24] Pokemon defensor: Ursaring[15/12/2016 18:57:25] Entrando no escopo...[15/12/2016 18:57:25] Valor da storage: Shadow Punch[15/12/2016 18:57:25] Pokemon atacante: Shiny Gengar[15/12/2016 18:57:25] Pokemon defensor: Ursaringelseif spell == "Shadow Punch" then	local pos = getThingPosWithDebug(target)	doSendMagicEffect(pos, 112)		local function doPunch(cid, target)			if not isCreature(cid) or not isCreature(target) then return true end		       doAreaCombatHealth(cid, ghostDmg, getThingPosWithDebug(target), 0, -min, -max, 255)		       pos.x = pos.x + 1		       doSendMagicEffect(pos, 140)        end	addEvent(doPunch, 200, cid, target)

 

 

spamando shadow storm + melee

Spoiler
[15/12/2016 18:56:40] Entrando no escopo...[15/12/2016 18:56:40] Valor da storage: melee[15/12/2016 18:56:40] Pokemon atacante: Ursaring[15/12/2016 18:56:40] Pokemon defensor: Shiny Gengar[15/12/2016 18:56:40] Entrando no escopo de MELEE...[15/12/2016 18:56:40] Value antes de getEffectvineCombat: -60[15/12/2016 18:56:40] Value depois de getEffectvineCombat: -60[15/12/2016 18:56:40] Dano fica: -60[15/12/2016 18:56:41] Entrando no escopo...[15/12/2016 18:56:41] Valor da storage: Shadow Storm[15/12/2016 18:56:41] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:41] Pokemon defensor: Ursaring[15/12/2016 18:56:41] Entrando no escopo...[15/12/2016 18:56:41] Valor da storage: melee[15/12/2016 18:56:41] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:41] Pokemon defensor: Ursaring[15/12/2016 18:56:41] Entrando no escopo de MELEE...[15/12/2016 18:56:41] Value antes de getEffectvineCombat: 0[15/12/2016 18:56:41] Value depois de getEffectvineCombat: 0[15/12/2016 18:56:41] Entrando no escopo...[15/12/2016 18:56:41] Valor da storage: melee[15/12/2016 18:56:41] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:41] Pokemon defensor: Ursaring[15/12/2016 18:56:41] Entrando no escopo de MELEE...[15/12/2016 18:56:41] Value antes de getEffectvineCombat: -71[15/12/2016 18:56:41] Value depois de getEffectvineCombat: -71[15/12/2016 18:56:41] Dano fica: -71[15/12/2016 18:56:42] Entrando no escopo...[15/12/2016 18:56:42] Valor da storage: Shadow Storm[15/12/2016 18:56:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:42] Pokemon defensor: Ursaring[15/12/2016 18:56:42] Entrando no escopo...[15/12/2016 18:56:42] Valor da storage: Shadow Storm[15/12/2016 18:56:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:42] Pokemon defensor: Ursaring[15/12/2016 18:56:42] Entrando no escopo...[15/12/2016 18:56:42] Valor da storage: melee[15/12/2016 18:56:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:42] Pokemon defensor: Ursaring[15/12/2016 18:56:42] Entrando no escopo de MELEE...[15/12/2016 18:56:42] Value antes de getEffectvineCombat: -2869[15/12/2016 18:56:42] Value depois de getEffectvineCombat: -2869[15/12/2016 18:56:42] Dano fica: -2869[15/12/2016 18:56:42] Entrando no escopo...[15/12/2016 18:56:42] Valor da storage: Shadow Storm[15/12/2016 18:56:42] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:42] Pokemon defensor: Ursaring[15/12/2016 18:56:43] Entrando no escopo...[15/12/2016 18:56:43] Valor da storage: melee[15/12/2016 18:56:43] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:43] Pokemon defensor: Ursaring[15/12/2016 18:56:43] Entrando no escopo de MELEE...[15/12/2016 18:56:43] Value antes de getEffectvineCombat: 0[15/12/2016 18:56:43] Value depois de getEffectvineCombat: 0[15/12/2016 18:56:43] Entrando no escopo...[15/12/2016 18:56:43] Valor da storage: melee[15/12/2016 18:56:43] Pokemon atacante: Ursaring[15/12/2016 18:56:43] Pokemon defensor: Shiny Gengar[15/12/2016 18:56:43] Entrando no escopo de MELEE...[15/12/2016 18:56:43] Value antes de getEffectvineCombat: -54[15/12/2016 18:56:43] Value depois de getEffectvineCombat: -54[15/12/2016 18:56:43] Dano fica: -54[15/12/2016 18:56:43] Entrando no escopo...[15/12/2016 18:56:43] Valor da storage: Shadow Storm[15/12/2016 18:56:43] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:43] Pokemon defensor: Ursaring[15/12/2016 18:56:43] Entrando no escopo...[15/12/2016 18:56:43] Valor da storage: melee[15/12/2016 18:56:43] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:43] Pokemon defensor: Ursaring[15/12/2016 18:56:43] Entrando no escopo de MELEE...[15/12/2016 18:56:43] Value antes de getEffectvineCombat: 0[15/12/2016 18:56:43] Value depois de getEffectvineCombat: 0[15/12/2016 18:56:43] > Broadcasted message: "Loots estao caindo apenas na OUTLAND SOUTH pois e a unica q o loot foi balancado no momento, iremos colocar loot em td pouco a pouco esperem...".[15/12/2016 18:56:43] Entrando no escopo...[15/12/2016 18:56:43] Valor da storage: Shadow Storm[15/12/2016 18:56:43] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:43] Pokemon defensor: Ursaring[15/12/2016 18:56:43] Entrando no escopo...[15/12/2016 18:56:43] Valor da storage: melee[15/12/2016 18:56:43] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:43] Pokemon defensor: Ursaring[15/12/2016 18:56:43] Entrando no escopo de MELEE...[15/12/2016 18:56:43] Value antes de getEffectvineCombat: -2858[15/12/2016 18:56:43] Value depois de getEffectvineCombat: -2858[15/12/2016 18:56:43] Dano fica: -2858[15/12/2016 18:56:43] Entrando no escopo...[15/12/2016 18:56:43] Valor da storage: melee[15/12/2016 18:56:43] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:43] Pokemon defensor: Ursaring[15/12/2016 18:56:43] Entrando no escopo de MELEE...[15/12/2016 18:56:43] Value antes de getEffectvineCombat: 0[15/12/2016 18:56:43] Value depois de getEffectvineCombat: 0[15/12/2016 18:56:43] Entrando no escopo...[15/12/2016 18:56:43] Valor da storage: melee[15/12/2016 18:56:43] Pokemon atacante: Shiny Gengar[15/12/2016 18:56:43] Pokemon defensor: Ursaring[15/12/2016 18:56:43] Entrando no escopo de MELEE...[15/12/2016 18:56:43] Value antes de getEffectvineCombat: -2925[15/12/2016 18:56:43] Value depois de getEffectvineCombat: -2925[15/12/2016 18:56:43] Dano fica: -2925

 

 

Shadow storm sem melee de ninguem (eu blocando o caminho pra nao bater melee) SHADOW STORM TB TEM MESMO PROBLEMA DO ELECTRIC STORM, MT STORM + 1 LICK e da hs

Spoiler
[15/12/2016 18:54:33] Entrando no escopo...[15/12/2016 18:54:33] Valor da storage: Shadow Storm[15/12/2016 18:54:33] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:33] Pokemon defensor: Ursaring[15/12/2016 18:54:34] Entrando no escopo...[15/12/2016 18:54:34] Valor da storage: Shadow Storm[15/12/2016 18:54:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:34] Pokemon defensor: Ursaring[15/12/2016 18:54:34] Entrando no escopo...[15/12/2016 18:54:34] Valor da storage: Shadow Storm[15/12/2016 18:54:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:34] Pokemon defensor: Ursaring[15/12/2016 18:54:34] Entrando no escopo...[15/12/2016 18:54:34] Valor da storage: Shadow Storm[15/12/2016 18:54:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:34] Pokemon defensor: Ursaring[15/12/2016 18:54:34] Entrando no escopo...[15/12/2016 18:54:34] Valor da storage: Shadow Storm[15/12/2016 18:54:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:34] Pokemon defensor: Ursaring[15/12/2016 18:54:35] Entrando no escopo...[15/12/2016 18:54:35] Valor da storage: Shadow Storm[15/12/2016 18:54:35] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:35] Pokemon defensor: Ursaring[15/12/2016 18:54:35] Entrando no escopo...[15/12/2016 18:54:35] Valor da storage: Shadow Storm[15/12/2016 18:54:35] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:35] Pokemon defensor: Ursaring[15/12/2016 18:54:35] Entrando no escopo...[15/12/2016 18:54:35] Valor da storage: Shadow Storm[15/12/2016 18:54:35] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:35] Pokemon defensor: Ursaring[15/12/2016 18:54:35] Entrando no escopo...[15/12/2016 18:54:35] Valor da storage: Shadow Storm[15/12/2016 18:54:35] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:36] Pokemon defensor: Ursaring[15/12/2016 18:54:36] Entrando no escopo...[15/12/2016 18:54:36] Valor da storage: Shadow Storm[15/12/2016 18:54:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:36] Pokemon defensor: Ursaring[15/12/2016 18:54:36] Entrando no escopo...[15/12/2016 18:54:36] Valor da storage: Shadow Storm[15/12/2016 18:54:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:36] Pokemon defensor: Ursaring[15/12/2016 18:54:36] Entrando no escopo...[15/12/2016 18:54:36] Valor da storage: melee[15/12/2016 18:54:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:36] Pokemon defensor: Ursaring[15/12/2016 18:54:36] Entrando no escopo de MELEE...[15/12/2016 18:54:36] Value antes de getEffectvineCombat: 0[15/12/2016 18:54:36] Value depois de getEffectvineCombat: 0[15/12/2016 18:54:36] Entrando no escopo...[15/12/2016 18:54:36] Valor da storage: Shadow Storm[15/12/2016 18:54:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:36] Pokemon defensor: Ursaring[15/12/2016 18:54:36] Entrando no escopo...[15/12/2016 18:54:36] Valor da storage: melee[15/12/2016 18:54:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:36] Pokemon defensor: Ursaring[15/12/2016 18:54:36] Entrando no escopo de MELEE...[15/12/2016 18:54:36] Value antes de getEffectvineCombat: 0[15/12/2016 18:54:36] Value depois de getEffectvineCombat: 0[15/12/2016 18:54:37] Entrando no escopo...[15/12/2016 18:54:37] Valor da storage: Shadow Storm[15/12/2016 18:54:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:37] Pokemon defensor: Ursaring[15/12/2016 18:54:37] Entrando no escopo...[15/12/2016 18:54:37] Valor da storage: melee[15/12/2016 18:54:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:37] Pokemon defensor: Ursaring[15/12/2016 18:54:37] Entrando no escopo de MELEE...[15/12/2016 18:54:37] Value antes de getEffectvineCombat: 0[15/12/2016 18:54:37] Value depois de getEffectvineCombat: 0[15/12/2016 18:54:37] Entrando no escopo...[15/12/2016 18:54:37] Valor da storage: Shadow Storm[15/12/2016 18:54:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:37] Pokemon defensor: Ursaring[15/12/2016 18:54:37] Entrando no escopo...[15/12/2016 18:54:37] Valor da storage: melee[15/12/2016 18:54:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:37] Pokemon defensor: Ursaring[15/12/2016 18:54:37] Entrando no escopo de MELEE...[15/12/2016 18:54:37] Value antes de getEffectvineCombat: 0[15/12/2016 18:54:37] Value depois de getEffectvineCombat: 0[15/12/2016 18:54:37] Entrando no escopo...[15/12/2016 18:54:37] Valor da storage: Shadow Storm[15/12/2016 18:54:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:37] Pokemon defensor: Ursaring[15/12/2016 18:54:37] Entrando no escopo...[15/12/2016 18:54:37] Valor da storage: Shadow Storm[15/12/2016 18:54:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:37] Pokemon defensor: Ursaring[15/12/2016 18:54:37] Entrando no escopo...[15/12/2016 18:54:37] Valor da storage: melee[15/12/2016 18:54:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:37] Pokemon defensor: Ursaring[15/12/2016 18:54:37] Entrando no escopo de MELEE...[15/12/2016 18:54:37] Value antes de getEffectvineCombat: 0[15/12/2016 18:54:37] Value depois de getEffectvineCombat: 0[15/12/2016 18:54:38] Entrando no escopo...[15/12/2016 18:54:38] Valor da storage: melee[15/12/2016 18:54:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:38] Pokemon defensor: Ursaring[15/12/2016 18:54:38] Entrando no escopo de MELEE...[15/12/2016 18:54:38] Value antes de getEffectvineCombat: -2894[15/12/2016 18:54:38] Value depois de getEffectvineCombat: -2894[15/12/2016 18:54:38] Dano fica: -2894[15/12/2016 18:54:38] Entrando no escopo...[15/12/2016 18:54:38] Valor da storage: Shadow Storm[15/12/2016 18:54:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:38] Pokemon defensor: Ursaring[15/12/2016 18:54:38] Entrando no escopo...[15/12/2016 18:54:38] Valor da storage: melee[15/12/2016 18:54:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:38] Pokemon defensor: Ursaring[15/12/2016 18:54:38] Entrando no escopo de MELEE...[15/12/2016 18:54:38] Value antes de getEffectvineCombat: -2803[15/12/2016 18:54:38] Value depois de getEffectvineCombat: -2803[15/12/2016 18:54:38] Dano fica: -2803[15/12/2016 18:54:38] Entrando no escopo...[15/12/2016 18:54:38] Valor da storage: Shadow Storm[15/12/2016 18:54:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:38] Pokemon defensor: Ursaring[15/12/2016 18:54:38] Entrando no escopo...[15/12/2016 18:54:38] Valor da storage: Shadow Storm[15/12/2016 18:54:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:39] Pokemon defensor: Ursaring[15/12/2016 18:54:39] Entrando no escopo...[15/12/2016 18:54:39] Valor da storage: melee[15/12/2016 18:54:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:39] Pokemon defensor: Ursaring[15/12/2016 18:54:39] Entrando no escopo de MELEE...[15/12/2016 18:54:39] Value antes de getEffectvineCombat: -2940[15/12/2016 18:54:39] Value depois de getEffectvineCombat: -2940[15/12/2016 18:54:39] Dano fica: -2940[15/12/2016 18:54:39] Entrando no escopo...[15/12/2016 18:54:39] Valor da storage: melee[15/12/2016 18:54:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:54:39] Pokemon defensor: Ursaring[15/12/2016 18:54:39] Entrando no escopo de MELEE...[15/12/2016 18:54:39] Value antes de getEffectvineCombat: 0[15/12/2016 18:54:39] Value depois de getEffectvineCombat: 0elseif spell == "Shadow Storm" thenlocal master = isSummon(cid) and getCreatureMaster(cid) or cidlocal function doFall(cid)for rocks = 1, 42 do   --62    addEvent(fall, rocks*35, cid, master, ghostDmg, 18, 140)endendfor up = 1, 10 do    addEvent(upEffect, up*75, cid, 18)endaddEvent(doFall, 450, cid)addEvent(doMoveInArea2, 1400, cid, 2, BigArea2, ghostDmg, min, max, spell)elseif spell == "Invisible" thendoDisapear(cid)doSendMagicEffect(getThingPosWithDebug(cid), 134)if isMonster(cid) then  local pos = getThingPosWithDebug(cid)                           --alterei!  doTeleportThing(cid, {x=4, y=3, z=10}, false)  doTeleportThing(cid, pos, false)endaddEvent(doAppear, 4000, cid)

 

 

Nightmare

Spoiler
[15/12/2016 18:53:25] Entrando no escopo...[15/12/2016 18:53:25] Valor da storage: Hypnosis[15/12/2016 18:53:25] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:25] Pokemon defensor: Ursaring[15/12/2016 18:53:25] Entrando no escopo...[15/12/2016 18:53:25] Valor da storage: Nightmare[15/12/2016 18:53:25] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:25] Pokemon defensor: Ursaring[15/12/2016 18:53:26] Entrando no escopo...[15/12/2016 18:53:26] Valor da storage: Nightmare[15/12/2016 18:53:26] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:26] Pokemon defensor: Ursaring[15/12/2016 18:53:26] Entrando no escopo...[15/12/2016 18:53:26] Valor da storage: Nightmare[15/12/2016 18:53:26] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:26] Pokemon defensor: Ursaring[15/12/2016 18:53:26] Entrando no escopo...[15/12/2016 18:53:26] Valor da storage: Nightmare[15/12/2016 18:53:26] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:26] Pokemon defensor: Ursaring[15/12/2016 18:53:26] Entrando no escopo...[15/12/2016 18:53:26] Valor da storage: melee[15/12/2016 18:53:26] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:26] Pokemon defensor: Ursaring[15/12/2016 18:53:26] Entrando no escopo de MELEE...[15/12/2016 18:53:26] Value antes de getEffectvineCombat: -78[15/12/2016 18:53:26] Value depois de getEffectvineCombat: -78[15/12/2016 18:53:26] Dano fica: -78[15/12/2016 18:53:26] Entrando no escopo...[15/12/2016 18:53:26] Valor da storage: Nightmare[15/12/2016 18:53:26] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:26] Pokemon defensor: Ursaring[15/12/2016 18:53:27] Entrando no escopo...[15/12/2016 18:53:27] Valor da storage: Nightmare[15/12/2016 18:53:27] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:27] Pokemon defensor: Ursaring[15/12/2016 18:53:27] Entrando no escopo...[15/12/2016 18:53:27] Valor da storage: Nightmare[15/12/2016 18:53:27] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:27] Pokemon defensor: Ursaring[15/12/2016 18:53:27] Entrando no escopo...[15/12/2016 18:53:27] Valor da storage: Nightmare[15/12/2016 18:53:27] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:27] Pokemon defensor: Ursaring[15/12/2016 18:53:28] Entrando no escopo...[15/12/2016 18:53:28] Valor da storage: Nightmare[15/12/2016 18:53:28] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:28] Pokemon defensor: Ursaring[15/12/2016 18:53:28] Entrando no escopo...[15/12/2016 18:53:28] Valor da storage: Nightmare[15/12/2016 18:53:28] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:28] Pokemon defensor: Ursaring[15/12/2016 18:53:28] Entrando no escopo...[15/12/2016 18:53:28] Valor da storage: Nightmare[15/12/2016 18:53:28] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:28] Pokemon defensor: Ursaring[15/12/2016 18:53:28] Entrando no escopo...[15/12/2016 18:53:28] Valor da storage: melee[15/12/2016 18:53:28] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:28] Pokemon defensor: Ursaring[15/12/2016 18:53:28] Entrando no escopo de MELEE...[15/12/2016 18:53:28] Value antes de getEffectvineCombat: -79[15/12/2016 18:53:28] Value depois de getEffectvineCombat: -79[15/12/2016 18:53:28] Dano fica: -79[15/12/2016 18:53:28] Entrando no escopo...[15/12/2016 18:53:28] Valor da storage: Nightmare[15/12/2016 18:53:28] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:28] Pokemon defensor: Ursaring[15/12/2016 18:53:29] Entrando no escopo...[15/12/2016 18:53:29] Valor da storage: Nightmare[15/12/2016 18:53:29] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:29] Pokemon defensor: Ursaring[15/12/2016 18:53:29] Entrando no escopo...[15/12/2016 18:53:29] Valor da storage: Nightmare[15/12/2016 18:53:29] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:29] Pokemon defensor: Ursaring[15/12/2016 18:53:29] Entrando no escopo...[15/12/2016 18:53:29] Valor da storage: Nightmare[15/12/2016 18:53:29] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:29] Pokemon defensor: Ursaring[15/12/2016 18:53:29] Entrando no escopo...[15/12/2016 18:53:29] Valor da storage: Nightmare[15/12/2016 18:53:29] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:29] Pokemon defensor: Ursaring[15/12/2016 18:53:30] Entrando no escopo...[15/12/2016 18:53:30] Valor da storage: Nightmare[15/12/2016 18:53:30] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:30] Pokemon defensor: Ursaring[15/12/2016 18:53:30] Entrando no escopo...[15/12/2016 18:53:30] Valor da storage: melee[15/12/2016 18:53:30] Pokemon atacante: Ursaring[15/12/2016 18:53:30] Pokemon defensor: Shiny Gengar[15/12/2016 18:53:30] Entrando no escopo de MELEE...[15/12/2016 18:53:30] Value antes de getEffectvineCombat: -73[15/12/2016 18:53:30] Value depois de getEffectvineCombat: -73[15/12/2016 18:53:30] Dano fica: -73[15/12/2016 18:53:30] Entrando no escopo...[15/12/2016 18:53:30] Valor da storage: Body Slam[15/12/2016 18:53:30] Pokemon atacante: Ursaring[15/12/2016 18:53:30] Pokemon defensor: Shiny Gengar[15/12/2016 18:53:30] Entrando no escopo...[15/12/2016 18:53:30] Valor da storage: Nightmare[15/12/2016 18:53:30] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:30] Pokemon defensor: Ursaring[15/12/2016 18:53:32] Entrando no escopo...[15/12/2016 18:53:32] Valor da storage: Hypnosis[15/12/2016 18:53:32] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:32] Pokemon defensor: Ursaring[15/12/2016 18:53:32] Entrando no escopo...[15/12/2016 18:53:32] Valor da storage: Nightmare[15/12/2016 18:53:32] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:32] Pokemon defensor: Ursaring[15/12/2016 18:53:32] Entrando no escopo...[15/12/2016 18:53:32] Valor da storage: melee[15/12/2016 18:53:32] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:32] Pokemon defensor: Ursaring[15/12/2016 18:53:32] Entrando no escopo de MELEE...[15/12/2016 18:53:32] Value antes de getEffectvineCombat: -92[15/12/2016 18:53:32] Value depois de getEffectvineCombat: -92[15/12/2016 18:53:32] Dano fica: -92[15/12/2016 18:53:33] Entrando no escopo...[15/12/2016 18:53:33] Valor da storage: Nightmare[15/12/2016 18:53:33] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:33] Pokemon defensor: Ursaring[15/12/2016 18:53:33] Entrando no escopo...[15/12/2016 18:53:33] Valor da storage: Nightmare[15/12/2016 18:53:33] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:33] Pokemon defensor: Ursaring[15/12/2016 18:53:33] Entrando no escopo...[15/12/2016 18:53:33] Valor da storage: Nightmare[15/12/2016 18:53:33] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:33] Pokemon defensor: Ursaring[15/12/2016 18:53:33] Entrando no escopo...[15/12/2016 18:53:33] Valor da storage: Nightmare[15/12/2016 18:53:33] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:33] Pokemon defensor: Ursaring[15/12/2016 18:53:34] Entrando no escopo...[15/12/2016 18:53:34] Valor da storage: Nightmare[15/12/2016 18:53:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:34] Pokemon defensor: Ursaring[15/12/2016 18:53:34] Entrando no escopo...[15/12/2016 18:53:34] Valor da storage: Nightmare[15/12/2016 18:53:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:34] Pokemon defensor: Ursaring[15/12/2016 18:53:34] Entrando no escopo...[15/12/2016 18:53:34] Valor da storage: Nightmare[15/12/2016 18:53:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:34] Pokemon defensor: Ursaring[15/12/2016 18:53:34] Entrando no escopo...[15/12/2016 18:53:34] Valor da storage: melee[15/12/2016 18:53:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:34] Pokemon defensor: Ursaring[15/12/2016 18:53:34] Entrando no escopo de MELEE...[15/12/2016 18:53:34] Value antes de getEffectvineCombat: -83[15/12/2016 18:53:34] Value depois de getEffectvineCombat: -83[15/12/2016 18:53:34] Dano fica: -83[15/12/2016 18:53:34] Entrando no escopo...[15/12/2016 18:53:34] Valor da storage: Nightmare[15/12/2016 18:53:34] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:34] Pokemon defensor: Ursaring[15/12/2016 18:53:35] Entrando no escopo...[15/12/2016 18:53:35] Valor da storage: Nightmare[15/12/2016 18:53:35] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:35] Pokemon defensor: Ursaring[15/12/2016 18:53:35] Entrando no escopo...[15/12/2016 18:53:35] Valor da storage: Nightmare[15/12/2016 18:53:35] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:35] Pokemon defensor: Ursaring[15/12/2016 18:53:35] Entrando no escopo...[15/12/2016 18:53:35] Valor da storage: Nightmare[15/12/2016 18:53:35] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:35] Pokemon defensor: Ursaring[15/12/2016 18:53:36] Entrando no escopo...[15/12/2016 18:53:36] Valor da storage: Nightmare[15/12/2016 18:53:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:36] Pokemon defensor: Ursaring[15/12/2016 18:53:36] Entrando no escopo...[15/12/2016 18:53:36] Valor da storage: Nightmare[15/12/2016 18:53:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:36] Pokemon defensor: Ursaring[15/12/2016 18:53:36] Entrando no escopo...[15/12/2016 18:53:36] Valor da storage: Nightmare[15/12/2016 18:53:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:36] Pokemon defensor: Ursaring[15/12/2016 18:53:36] Entrando no escopo...[15/12/2016 18:53:36] Valor da storage: melee[15/12/2016 18:53:36] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:36] Pokemon defensor: Ursaring[15/12/2016 18:53:36] Entrando no escopo de MELEE...[15/12/2016 18:53:36] Value antes de getEffectvineCombat: -79[15/12/2016 18:53:36] Value depois de getEffectvineCombat: -79[15/12/2016 18:53:36] Dano fica: -79[15/12/2016 18:53:37] Entrando no escopo...[15/12/2016 18:53:37] Valor da storage: Nightmare[15/12/2016 18:53:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:37] Pokemon defensor: Ursaring[15/12/2016 18:53:37] Entrando no escopo...[15/12/2016 18:53:37] Valor da storage: Nightmare[15/12/2016 18:53:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:37] Pokemon defensor: Ursaring[15/12/2016 18:53:37] Entrando no escopo...[15/12/2016 18:53:37] Valor da storage: Nightmare[15/12/2016 18:53:37] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:37] Pokemon defensor: Ursaring[15/12/2016 18:53:38] Entrando no escopo...[15/12/2016 18:53:38] Valor da storage: Nightmare[15/12/2016 18:53:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:38] Pokemon defensor: Ursaring[15/12/2016 18:53:38] Entrando no escopo...[15/12/2016 18:53:38] Valor da storage: Nightmare[15/12/2016 18:53:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:38] Pokemon defensor: Ursaring[15/12/2016 18:53:38] Entrando no escopo...[15/12/2016 18:53:38] Valor da storage: Nightmare[15/12/2016 18:53:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:38] Pokemon defensor: Ursaring[15/12/2016 18:53:38] Entrando no escopo...[15/12/2016 18:53:38] Valor da storage: Nightmare[15/12/2016 18:53:38] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:38] Pokemon defensor: Ursaring[15/12/2016 18:53:38] Entrando no escopo...[15/12/2016 18:53:38] Valor da storage: melee[15/12/2016 18:53:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:39] Pokemon defensor: Ursaring[15/12/2016 18:53:39] Entrando no escopo de MELEE...[15/12/2016 18:53:39] Value antes de getEffectvineCombat: -2391[15/12/2016 18:53:39] Value depois de getEffectvineCombat: -2391[15/12/2016 18:53:39] Dano fica: -2391[15/12/2016 18:53:39] Entrando no escopo...[15/12/2016 18:53:39] Valor da storage: Nightmare[15/12/2016 18:53:39] Pokemon atacante: Shiny Gengar[15/12/2016 18:53:39] Pokemon defensor: Ursaring[15/12/2016 18:53:39] Entrando no escopo...[15/12/2016 18:53:39] Valor da storage: melee[15/12/2016 18:53:39] Pokemon atacante: Ursaring[15/12/2016 18:53:39] Pokemon defensor: Shiny Gengar[15/12/2016 18:53:39] Entrando no escopo de MELEE...[15/12/2016 18:53:39] Value antes de getEffectvineCombat: -100[15/12/2016 18:53:39] Value depois de getEffectvineCombat: -100[15/12/2016 18:53:39] Dano fica: -100elseif spell == "Nightmare" then    if not isSleeping(target) then		doSendMagicEffect(getThingPosWithDebug(target), 3)		doSendAnimatedText(getThingPosWithDebug(target), "FAIL", 155)	return true	end	doDanoWithProtectWithDelay(cid, target, ghostDmg, -min, -max, 138)  

 

 

Agora shiny Hypno vs Umbreon, tudo segundo hit do Psy Pulse ta batendo dano

Spoiler
[15/12/2016 18:51:40] Entrando no escopo...[15/12/2016 18:51:40] Valor da storage: melee[15/12/2016 18:51:40] Pokemon atacante: Shiny Umbreon[15/12/2016 18:51:40] Pokemon defensor: Shiny Hypno[15/12/2016 18:51:40] Entrando no escopo de MELEE...[15/12/2016 18:51:40] Value antes de getEffectvineCombat: -86[15/12/2016 18:51:40] Value depois de getEffectvineCombat: -111.8[15/12/2016 18:51:40] Dano fica: -447.2[15/12/2016 18:51:41] Entrando no escopo...[15/12/2016 18:51:41] Valor da storage: Psy Pulse[15/12/2016 18:51:41] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:41] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:41] Entrando no escopo...[15/12/2016 18:51:41] Valor da storage: melee[15/12/2016 18:51:41] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:41] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:41] Entrando no escopo de MELEE...[15/12/2016 18:51:41] Value antes de getEffectvineCombat: -803[15/12/2016 18:51:41] Value depois de getEffectvineCombat: -803[15/12/2016 18:51:41] Dano fica: -1606[15/12/2016 18:51:41] > Broadcasted message: "Loots estao caindo apenas na OUTLAND SOUTH pois e a unica q o loot foi balancado no momento, iremos colocar loot em td pouco a pouco esperem...".[15/12/2016 18:51:42] Entrando no escopo...[15/12/2016 18:51:42] Valor da storage: melee[15/12/2016 18:51:42] Pokemon atacante: Shiny Umbreon[15/12/2016 18:51:42] Pokemon defensor: Shiny Hypno[15/12/2016 18:51:42] Entrando no escopo de MELEE...[15/12/2016 18:51:42] Value antes de getEffectvineCombat: -114[15/12/2016 18:51:42] Value depois de getEffectvineCombat: -148.2[15/12/2016 18:51:42] Dano fica: -592.8[15/12/2016 18:51:42] Entrando no escopo...[15/12/2016 18:51:42] Valor da storage: Psy Pulse[15/12/2016 18:51:42] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:42] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:42] Entrando no escopo...[15/12/2016 18:51:42] Valor da storage: melee[15/12/2016 18:51:42] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:42] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:42] Entrando no escopo de MELEE...[15/12/2016 18:51:42] Value antes de getEffectvineCombat: -90[15/12/2016 18:51:42] Value depois de getEffectvineCombat: -90[15/12/2016 18:51:42] Dano fica: -180[15/12/2016 18:51:42] Entrando no escopo...[15/12/2016 18:51:42] Valor da storage: melee[15/12/2016 18:51:42] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:42] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:42] Entrando no escopo de MELEE...[15/12/2016 18:51:42] Value antes de getEffectvineCombat: -803[15/12/2016 18:51:42] Value depois de getEffectvineCombat: -803[15/12/2016 18:51:42] Dano fica: -1606[15/12/2016 18:51:42] Entrando no escopo...[15/12/2016 18:51:42] Valor da storage: Psy Pulse[15/12/2016 18:51:42] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:42] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:43] Entrando no escopo...[15/12/2016 18:51:43] Valor da storage: Quick Attack[15/12/2016 18:51:43] Pokemon atacante: Shiny Umbreon[15/12/2016 18:51:43] Pokemon defensor: Shiny Hypno[15/12/2016 18:51:43] Entrando no escopo...[15/12/2016 18:51:43] Valor da storage: melee[15/12/2016 18:51:43] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:43] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:43] Entrando no escopo de MELEE...[15/12/2016 18:51:43] Value antes de getEffectvineCombat: -999[15/12/2016 18:51:43] Value depois de getEffectvineCombat: -999[15/12/2016 18:51:43] Dano fica: -1998[15/12/2016 18:51:44] Entrando no escopo...[15/12/2016 18:51:44] Valor da storage: melee[15/12/2016 18:51:44] Pokemon atacante: Shiny Umbreon[15/12/2016 18:51:44] Pokemon defensor: Shiny Hypno[15/12/2016 18:51:44] Entrando no escopo de MELEE...[15/12/2016 18:51:44] Value antes de getEffectvineCombat: -121[15/12/2016 18:51:44] Value depois de getEffectvineCombat: -157.3[15/12/2016 18:51:44] Dano fica: -629.2elseif spell == "Psy Pulse" or spell == "Cyber Pulse" or spell == "Dark Pulse" thendamage = skill == "Dark Pulse" and DARKDAMAGE or psyDmglocal function doPulse(cid, eff)if not isCreature(cid) then return true end   doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), 3)   doDanoInTargetWithDelay(cid, target, damage, min, max, eff)      --alterado v1.7end   if spell == "Cyber Pulse" then      eff = 11   elseif spell == "Dark Pulse" then      eff = 47  --efeito n eh esse mas... ;p   else      eff = 133   end       addEvent(doPulse, 0, cid, eff)                   addEvent(doPulse, 250, cid, eff)

 

 

tudo psyshock ta dando dano

Spoiler
[15/12/2016 18:51:09] Entrando no escopo...[15/12/2016 18:51:09] Valor da storage: melee[15/12/2016 18:51:09] Pokemon atacante: Shiny Umbreon[15/12/2016 18:51:09] Pokemon defensor: Shiny Hypno[15/12/2016 18:51:09] Entrando no escopo de MELEE...[15/12/2016 18:51:09] Value antes de getEffectvineCombat: -95[15/12/2016 18:51:09] Value depois de getEffectvineCombat: -123.5[15/12/2016 18:51:09] Dano fica: -494[15/12/2016 18:51:11] Entrando no escopo...[15/12/2016 18:51:11] Valor da storage: Psyshock[15/12/2016 18:51:11] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:11] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:11] Entrando no escopo...[15/12/2016 18:51:11] Valor da storage: melee[15/12/2016 18:51:11] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:11] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:11] Entrando no escopo de MELEE...[15/12/2016 18:51:11] Value antes de getEffectvineCombat: -1983[15/12/2016 18:51:11] Value depois de getEffectvineCombat: -1983[15/12/2016 18:51:11] Dano fica: -3966[15/12/2016 18:51:11] Entrando no escopo...[15/12/2016 18:51:11] Valor da storage: melee[15/12/2016 18:51:11] Pokemon atacante: Shiny Umbreon[15/12/2016 18:51:11] Pokemon defensor: Shiny Hypno[15/12/2016 18:51:11] Entrando no escopo de MELEE...[15/12/2016 18:51:11] Value antes de getEffectvineCombat: -101[15/12/2016 18:51:11] Value depois de getEffectvineCombat: -131.3[15/12/2016 18:51:11] Dano fica: -525.2[15/12/2016 18:51:11] Entrando no escopo...[15/12/2016 18:51:11] Valor da storage: melee[15/12/2016 18:51:11] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:11] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:11] Entrando no escopo de MELEE...[15/12/2016 18:51:11] Value antes de getEffectvineCombat: -79[15/12/2016 18:51:11] Value depois de getEffectvineCombat: -79[15/12/2016 18:51:11] Dano fica: -158[15/12/2016 18:51:12] Entrando no escopo...[15/12/2016 18:51:12] Valor da storage: Psyshock[15/12/2016 18:51:12] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:12] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:12] Entrando no escopo...[15/12/2016 18:51:12] Valor da storage: melee[15/12/2016 18:51:12] Pokemon atacante: Shiny Hypno[15/12/2016 18:51:12] Pokemon defensor: Shiny Umbreon[15/12/2016 18:51:12] Entrando no escopo de MELEE...[15/12/2016 18:51:12] Value antes de getEffectvineCombat: -1766[15/12/2016 18:51:12] Value depois de getEffectvineCombat: -1766[15/12/2016 18:51:12] Dano fica: -3532[15/12/2016 18:51:12] Entrando no escopo...[15/12/2016 18:51:12] Valor da storage: Quick Attack[15/12/2016 18:51:12] Pokemon atacante: Shiny Umbreon[15/12/2016 18:51:12] Pokemon defensor: Shiny Hypnoelseif spell == "Psyshock" thenlocal p = getThingPosWithDebug(cid)local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or getCreatureLookDir(cid)function sendAtk(cid, area, eff)if isCreature(cid) then    if not isSightClear(p, area, false) then return true end   doAreaCombatHealth(cid, psyDmg, area, 0, 0, 0, eff)    --alterado v1.4   doAreaCombatHealth(cid, psyDmg, area, whirl3, -min, -max, 255)     --alterado v1.4endendfor a = 0, 4 dolocal t = {[0] = {250, {x=p.x, y=p.y-(a+1), z=p.z}},           --alterado v1.4[1] = {250, {x=p.x+(a+1), y=p.y, z=p.z}},[2] = {250, {x=p.x, y=p.y+(a+1), z=p.z}},[3] = {250, {x=p.x-(a+1), y=p.y, z=p.z}}}   addEvent(sendAtk, 370*a, cid, t[d][2], t[d][1])end

 

Miracle eye nao tira a inmunidade como deberia

Spoiler
elseif spell == "Dark Eye" or spell == "Miracle Eye" thenlocal function removeSpell(cid)  if not isCreature(cid) then return true end  setPlayerStorageValue(cid, 999457, -1) enddoSendMagicEffect(getThingPosWithDebug(cid), 47)setPlayerStorageValue(cid, 999457, 1) addEvent(removeSpell, 1500, cid)

 

 

shockwave de rhydon num pidgeot (sem spam)

Spoiler
[15/12/2016 18:48:38] Entrando no escopo...[15/12/2016 18:48:38] Valor da storage: melee[15/12/2016 18:48:38] Pokemon atacante: Pidgeot[15/12/2016 18:48:38] Pokemon defensor: Rhydon[15/12/2016 18:48:38] Entrando no escopo de MELEE...[15/12/2016 18:48:38] Value antes de getEffectvineCombat: -100[15/12/2016 18:48:38] Value depois de getEffectvineCombat: -100[15/12/2016 18:48:38] Dano fica: -100[15/12/2016 18:48:40] Entrando no escopo...[15/12/2016 18:48:40] Valor da storage: melee[15/12/2016 18:48:40] Pokemon atacante: Pidgeot[15/12/2016 18:48:40] Pokemon defensor: Rhydon[15/12/2016 18:48:40] Entrando no escopo de MELEE...[15/12/2016 18:48:40] Value antes de getEffectvineCombat: -58[15/12/2016 18:48:40] Value depois de getEffectvineCombat: -58[15/12/2016 18:48:40] Dano fica: -58[15/12/2016 18:48:41] Entrando no escopo...[15/12/2016 18:48:41] Valor da storage: melee[15/12/2016 18:48:41] Pokemon atacante: Rhydon[15/12/2016 18:48:41] Pokemon defensor: Pidgeot[15/12/2016 18:48:41] Entrando no escopo de MELEE...[15/12/2016 18:48:41] Value antes de getEffectvineCombat: -87[15/12/2016 18:48:41] Value depois de getEffectvineCombat: -87[15/12/2016 18:48:41] Dano fica: -174[15/12/2016 18:48:42] Entrando no escopo...[15/12/2016 18:48:42] Valor da storage: melee[15/12/2016 18:48:42] Pokemon atacante: Pidgeot[15/12/2016 18:48:42] Pokemon defensor: Rhydon[15/12/2016 18:48:42] Entrando no escopo de MELEE...[15/12/2016 18:48:42] Value antes de getEffectvineCombat: -82[15/12/2016 18:48:42] Value depois de getEffectvineCombat: -82[15/12/2016 18:48:42] Dano fica: -82[15/12/2016 18:48:42] Entrando no escopo...[15/12/2016 18:48:42] Valor da storage: Shockwave[15/12/2016 18:48:42] Pokemon atacante: Rhydon[15/12/2016 18:48:42] Pokemon defensor: Pidgeot[15/12/2016 18:48:42] Entrando no escopo...[15/12/2016 18:48:42] Valor da storage: melee[15/12/2016 18:48:42] Pokemon atacante: Rhydon[15/12/2016 18:48:42] Pokemon defensor: Pidgeot[15/12/2016 18:48:42] Entrando no escopo de MELEE...[15/12/2016 18:48:42] Value antes de getEffectvineCombat: -1620[15/12/2016 18:48:42] Value depois de getEffectvineCombat: -1620[15/12/2016 18:48:42] Dano fica: -3240[15/12/2016 18:48:43] Entrando no escopo...[15/12/2016 18:48:43] Valor da storage: melee[15/12/2016 18:48:43] Pokemon atacante: Rhydon[15/12/2016 18:48:43] Pokemon defensor: Pidgeot[15/12/2016 18:48:43] Entrando no escopo de MELEE...[15/12/2016 18:48:43] Value antes de getEffectvineCombat: -55[15/12/2016 18:48:43] Value depois de getEffectvineCombat: -55[15/12/2016 18:48:43] Dano fica: -110[15/12/2016 18:48:43] Entrando no escopo...[15/12/2016 18:48:43] Valor da storage: Shockwave[15/12/2016 18:48:43] Pokemon atacante: Rhydon[15/12/2016 18:48:43] Pokemon defensor: Pidgeot[15/12/2016 18:48:43] Entrando no escopo...[15/12/2016 18:48:43] Valor da storage: melee[15/12/2016 18:48:43] Pokemon atacante: Rhydon[15/12/2016 18:48:43] Pokemon defensor: Pidgeot[15/12/2016 18:48:43] Entrando no escopo de MELEE...[15/12/2016 18:48:43] Value antes de getEffectvineCombat: -1483[15/12/2016 18:48:43] Value depois de getEffectvineCombat: -1483[15/12/2016 18:48:43] Dano fica: -2966[15/12/2016 18:48:43] Entrando no escopo...[15/12/2016 18:48:43] Valor da storage: Shockwave[15/12/2016 18:48:43] Pokemon atacante: Rhydon[15/12/2016 18:48:43] Pokemon defensor: Pidgeot[15/12/2016 18:48:43] Entrando no escopo...[15/12/2016 18:48:43] Valor da storage: melee[15/12/2016 18:48:43] Pokemon atacante: Rhydon[15/12/2016 18:48:43] Pokemon defensor: Pidgeot[15/12/2016 18:48:43] Entrando no escopo de MELEE...[15/12/2016 18:48:43] Value antes de getEffectvineCombat: -1596[15/12/2016 18:48:43] Value depois de getEffectvineCombat: -1596[15/12/2016 18:48:43] Dano fica: -3192[15/12/2016 18:48:43] Entrando no escopo...[15/12/2016 18:48:43] Valor da storage: Shockwave[15/12/2016 18:48:43] Pokemon atacante: Rhydon[15/12/2016 18:48:43] Pokemon defensor: Pidgeot[15/12/2016 18:48:43] Entrando no escopo...[15/12/2016 18:48:43] Valor da storage: melee[15/12/2016 18:48:43] Pokemon atacante: Rhydon[15/12/2016 18:48:43] Pokemon defensor: Pidgeot[15/12/2016 18:48:43] Entrando no escopo de MELEE...[15/12/2016 18:48:43] Value antes de getEffectvineCombat: -1751[15/12/2016 18:48:44] Value depois de getEffectvineCombat: -1751[15/12/2016 18:48:44] Dano fica: -3502elseif spell == "Shockwave" thenlocal p = getThingPosWithDebug(cid)local d = isCreature(target) and getCreatureDirectionToTarget(cid, target) or getCreatureLookDir(cid)function sendAtk(cid, area, areaEff, eff)if isCreature(cid) then   if not isSightClear(p, area, false) then return true end                                             --testar o atk!!   doAreaCombatHealth(cid, GROUNDDAMAGE, areaEff, 0, 0, 0, eff)       doAreaCombatHealth(cid, GROUNDDAMAGE, area, whirl3, -min, -max, 255)     endendfor a = 0, 5 dolocal t = {[0] = {126, {x=p.x, y=p.y-(a+1), z=p.z}, {x=p.x+1, y=p.y-(a+1), z=p.z}},           [1] = {124, {x=p.x+(a+1), y=p.y, z=p.z}, {x=p.x+(a+1), y=p.y+1, z=p.z}},[2] = {125, {x=p.x, y=p.y+(a+1), z=p.z}, {x=p.x+1, y=p.y+(a+1), z=p.z}},[3] = {123, {x=p.x-(a+1), y=p.y, z=p.z}, {x=p.x-(a+1), y=p.y+1, z=p.z}}}   addEvent(sendAtk, 325*a, cid, t[d][2], t[d][3], t[d][1])end                         

 

 

Link para o comentário
Compartilhar em outros sites

O melee bater em pokémon fantasma e o Miracle Eye não funcionar não estão ligados diretamente a esse problema. De fato, não há proteções que anulam o melee em fantasmas e não há um código que ative o efeito do Miracle Eye.

No código da função:

function getEffectvineCombat(cid, attacker, value)

Abaixo de:

if getCreatureName(cid) == "Venusaur" and value ~= 0 and isMega(cid) and isInArray({"ice", "fire"}, pokeRaceAttacker)then -- Passiva thick fat	value = value / 2end

coloque:

if pokeRaceDefender == "ghost" then         --Melee ser anulado vs ghost type.	value = 0end

 

Depois, no código da função:

function getEffectvineSpell(attacker, spellNameFromAttacker, value, cid)

Troque:

if isInArray(typeTable[spellRace].non, pokeElement1) then	multiplier = multiplier * 0endif pokeElement2 and isInArray(typeTable[spellRace].non, pokeElement2) then	multiplier = multiplier * 0end

por:

--Miracle eyeif spellRace == "psychic" and (pokeElement1 == "dark" or pokeElement2 and pokeElement2 == "dark") and getPlayerStorageValue(attacker, 999457) > -1 then	multiplier = 0.75	setPlayerStorageValue(attacker, 999457, -1) else	if isInArray(typeTable[spellRace].non, pokeElement1) then 		 multiplier = multiplier * 0  	end	if pokeElement2 and isInArray(typeTable[spellRace].non, pokeElement2) then		multiplier = multiplier * 0	endend

 

Quanto às spells spammadas, você poderia fazer um teste com as spells Super Fang Tackle? Preciso confirmar uma (espero) última coisa.

Editado por zipter98
Link para o comentário
Compartilhar em outros sites

2 horas atrás, zipter98 disse:

O melee bater em pokémon fantasma e o Miracle Eye não funcionar não estão ligados diretamente a esse problema. De fato, não há proteções que anulam o melee em fantasmas e não há um código que ative o efeito do Miracle Eye.

No código da função:


function getEffectvineCombat(cid, attacker, value)

Abaixo de:


if getCreatureName(cid) == "Venusaur" and value ~= 0 and isMega(cid) and isInArray({"ice", "fire"}, pokeRaceAttacker)then -- Passiva thick fat
	value = value / 2
end

coloque:


if pokeRaceDefender == "ghost" then         --Melee ser anulado vs ghost type.
	value = 0
end

 

Depois, no código da função:


function getEffectvineSpell(attacker, spellNameFromAttacker, value, cid)

Troque:


if isInArray(typeTable[spellRace].non, pokeElement1) then
	multiplier = multiplier * 0
end
if pokeElement2 and isInArray(typeTable[spellRace].non, pokeElement2) then
	multiplier = multiplier * 0
end

por:


--Miracle eye
if spellRace == "psychic" and (isInArray(typeTable[spellRace].non, pokeElement1) or pokeElement2 and isInArray(typeTable[spellRace].non, pokeElement2)) and getPlayerStorageValue(attacker, 999457) > -1 then
	multiplier = multiplier - 0.3
	setPlayerStorageValue(attacker, 999457, -1) 
else
	if isInArray(typeTable[spellRace].non, pokeElement1) then
 		 multiplier = multiplier * 0
  	end

	if pokeElement2 and isInArray(typeTable[spellRace].non, pokeElement2) then
		multiplier = multiplier * 0
	end
end

 

Quanto às spells spammadas, você poderia fazer um teste com as spells Super Fang Tackle? Preciso confirmar uma (espero) última coisa.

 

Super fang NAO BUGA

Spoiler

[16/12/2016 15:46:51] Entrando no escopo...
[16/12/2016 15:46:51] Valor da storage: melee
[16/12/2016 15:46:51] Pokemon atacante: Gengar
[16/12/2016 15:46:51] Pokemon defensor: Raticate
[16/12/2016 15:46:51] Entrando no escopo de MELEE...
[16/12/2016 15:46:51] Value antes de getEffectvineCombat: -67
[16/12/2016 15:46:51] Value depois de getEffectvineCombat: -67
[16/12/2016 15:46:51] Dano fica: -67
[16/12/2016 15:46:53] Entrando no escopo...
[16/12/2016 15:46:53] Valor da storage: melee
[16/12/2016 15:46:53] Pokemon atacante: Gengar
[16/12/2016 15:46:53] Pokemon defensor: Raticate
[16/12/2016 15:46:53] Entrando no escopo de MELEE...
[16/12/2016 15:46:53] Value antes de getEffectvineCombat: -63
[16/12/2016 15:46:53] Value depois de getEffectvineCombat: -63
[16/12/2016 15:46:53] Dano fica: -63
[16/12/2016 15:46:54] Entrando no escopo...
[16/12/2016 15:46:54] Valor da storage: melee
[16/12/2016 15:46:54] Pokemon atacante: Raticate
[16/12/2016 15:46:54] Pokemon defensor: Gengar
[16/12/2016 15:46:54] Entrando no escopo de MELEE...
[16/12/2016 15:46:54] Value antes de getEffectvineCombat: -100
[16/12/2016 15:46:54] Value depois de getEffectvineCombat: 0
[16/12/2016 15:46:54] Entrando no escopo...
[16/12/2016 15:46:54] Valor da storage: Super Fang
[16/12/2016 15:46:54] Pokemon atacante: Raticate
[16/12/2016 15:46:54] Pokemon defensor: Gengar
[16/12/2016 15:46:54] Entrando no escopo...
[16/12/2016 15:46:54] Valor da storage: Super Fang
[16/12/2016 15:46:54] Pokemon atacante: Raticate
[16/12/2016 15:46:54] Pokemon defensor: Gengar
[16/12/2016 15:46:55] Entrando no escopo...
[16/12/2016 15:46:55] Valor da storage: Super Fang
[16/12/2016 15:46:55] Pokemon atacante: Raticate
[16/12/2016 15:46:55] Pokemon defensor: Gengar
[16/12/2016 15:46:55] Entrando no escopo...
[16/12/2016 15:46:55] Valor da storage: Invisible
[16/12/2016 15:46:55] Pokemon atacante: Gengar
[16/12/2016 15:46:55] Pokemon defensor: Raticate
[16/12/2016 15:46:55] Entrando no escopo...
[16/12/2016 15:46:55] Valor da storage: Night Shade
[16/12/2016 15:46:55] Pokemon atacante: Gengar
[16/12/2016 15:46:55] Pokemon defensor: Raticate
[16/12/2016 15:46:57] Entrando no escopo...
[16/12/2016 15:46:57] Valor da storage: melee
[16/12/2016 15:46:57] Pokemon atacante: Gengar
[16/12/2016 15:46:57] Pokemon defensor: Raticate
[16/12/2016 15:46:57] Entrando no escopo de MELEE...
[16/12/2016 15:46:57] Value antes de getEffectvineCombat: -50
[16/12/2016 15:46:57] Value depois de getEffectvineCombat: -50
[16/12/2016 15:46:57] Dano fica: -50
[16/12/2016 15:46:59] Entrando no escopo...
[16/12/2016 15:46:59] Valor da storage: Super Fang
[16/12/2016 15:46:59] Pokemon atacante: Raticate
[16/12/2016 15:46:59] Pokemon defensor: Gengar
[16/12/2016 15:46:59] Entrando no escopo...
[16/12/2016 15:46:59] Valor da storage: Shadow Punch
[16/12/2016 15:46:59] Pokemon atacante: Gengar
[16/12/2016 15:46:59] Pokemon defensor: Raticate
[16/12/2016 15:46:59] Entrando no escopo...
[16/12/2016 15:46:59] Valor da storage: Super Fang
[16/12/2016 15:46:59] Pokemon atacante: Raticate
[16/12/2016 15:46:59] Pokemon defensor: Gengar
[16/12/2016 15:46:59] Entrando no escopo...
[16/12/2016 15:46:59] Valor da storage: melee
[16/12/2016 15:46:59] Pokemon atacante: Gengar
[16/12/2016 15:46:59] Pokemon defensor: Raticate
[16/12/2016 15:46:59] Entrando no escopo de MELEE...
[16/12/2016 15:46:59] Value antes de getEffectvineCombat: -87
[16/12/2016 15:46:59] Value depois de getEffectvineCombat: -87
[16/12/2016 15:46:59] Dano fica: -87
[16/12/2016 15:46:59] Entrando no escopo...
[16/12/2016 15:46:59] Valor da storage: Super Fang
[16/12/2016 15:46:59] Pokemon atacante: Raticate
[16/12/2016 15:46:59] Pokemon defensor: Gengar
[16/12/2016 15:47:00] Entrando no escopo...
[16/12/2016 15:47:00] Valor da storage: Super Fang
[16/12/2016 15:47:00] Pokemon atacante: Raticate
[16/12/2016 15:47:00] Pokemon defensor: Gengar
[16/12/2016 15:47:00] Entrando no escopo...
[16/12/2016 15:47:00] Valor da storage: Shadow Ball
[16/12/2016 15:47:00] Pokemon atacante: Gengar
[16/12/2016 15:47:00] Pokemon defensor: Raticate
[16/12/2016 15:47:00] Entrando no escopo...
[16/12/2016 15:47:00] Valor da storage: Super Fang
[16/12/2016 15:47:00] Pokemon atacante: Raticate
[16/12/2016 15:47:00] Pokemon defensor: Gengar
[16/12/2016 15:47:00] Entrando no escopo...
[16/12/2016 15:47:00] Valor da storage: Super Fang
[16/12/2016 15:47:00] Pokemon atacante: Raticate
[16/12/2016 15:47:00] Pokemon defensor: Gengar
[16/12/2016 15:47:01] Entrando no escopo...
[16/12/2016 15:47:01] Valor da storage: Super Fang
[16/12/2016 15:47:01] Pokemon atacante: Raticate
[16/12/2016 15:47:01] Pokemon defensor: Gengar
[16/12/2016 15:47:01] Entrando no escopo...
[16/12/2016 15:47:01] Valor da storage: melee
[16/12/2016 15:47:01] Pokemon atacante: Raticate
[16/12/2016 15:47:01] Pokemon defensor: Gengar
[16/12/2016 15:47:01] Entrando no escopo de MELEE...
[16/12/2016 15:47:01] Value antes de getEffectvineCombat: -69
[16/12/2016 15:47:01] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:01] Entrando no escopo...
[16/12/2016 15:47:01] Valor da storage: Super Fang
[16/12/2016 15:47:01] Pokemon atacante: Raticate
[16/12/2016 15:47:01] Pokemon defensor: Gengar
[16/12/2016 15:47:01] Entrando no escopo...
[16/12/2016 15:47:01] Valor da storage: Super Fang
[16/12/2016 15:47:01] Pokemon atacante: Raticate
[16/12/2016 15:47:01] Pokemon defensor: Gengar
[16/12/2016 15:47:01] Entrando no escopo...
[16/12/2016 15:47:01] Valor da storage: melee
[16/12/2016 15:47:01] Pokemon atacante: Gengar
[16/12/2016 15:47:01] Pokemon defensor: Raticate
[16/12/2016 15:47:01] Entrando no escopo de MELEE...
[16/12/2016 15:47:01] Value antes de getEffectvineCombat: -80
[16/12/2016 15:47:01] Value depois de getEffectvineCombat: -80
[16/12/2016 15:47:02] Dano fica: -80
[16/12/2016 15:47:02] Entrando no escopo...
[16/12/2016 15:47:02] Valor da storage: Fear
[16/12/2016 15:47:02] Pokemon atacante: Gengar
[16/12/2016 15:47:02] Pokemon defensor: Raticate
[16/12/2016 15:47:04] Entrando no escopo...
[16/12/2016 15:47:04] Valor da storage: Shadow Ball
[16/12/2016 15:47:04] Pokemon atacante: Gengar
[16/12/2016 15:47:04] Pokemon defensor: Raticate
[16/12/2016 15:47:04] Entrando no escopo...
[16/12/2016 15:47:04] Valor da storage: Shadow Ball
[16/12/2016 15:47:04] Pokemon atacante: Gengar
[16/12/2016 15:47:04] Pokemon defensor: Raticate
[16/12/2016 15:47:04] Entrando no escopo...
[16/12/2016 15:47:04] Valor da storage: melee
[16/12/2016 15:47:04] Pokemon atacante: Raticate
[16/12/2016 15:47:04] Pokemon defensor: Gengar
[16/12/2016 15:47:04] Entrando no escopo de MELEE...
[16/12/2016 15:47:04] Value antes de getEffectvineCombat: -74
[16/12/2016 15:47:04] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:05] Entrando no escopo...
[16/12/2016 15:47:05] Valor da storage: Super Fang
[16/12/2016 15:47:05] Pokemon atacante: Raticate
[16/12/2016 15:47:05] Pokemon defensor: Gengar
[16/12/2016 15:47:05] Entrando no escopo...
[16/12/2016 15:47:05] Valor da storage: Super Fang
[16/12/2016 15:47:05] Pokemon atacante: Raticate
[16/12/2016 15:47:05] Pokemon defensor: Gengar
[16/12/2016 15:47:06] Entrando no escopo...
[16/12/2016 15:47:06] Valor da storage: melee
[16/12/2016 15:47:06] Pokemon atacante: Gengar
[16/12/2016 15:47:06] Pokemon defensor: Raticate
[16/12/2016 15:47:06] Entrando no escopo de MELEE...
[16/12/2016 15:47:06] Value antes de getEffectvineCombat: -73
[16/12/2016 15:47:06] Value depois de getEffectvineCombat: -73
[16/12/2016 15:47:06] Dano fica: -73
[16/12/2016 15:47:06] Entrando no escopo...
[16/12/2016 15:47:06] Valor da storage: Super Fang
[16/12/2016 15:47:06] Pokemon atacante: Raticate
[16/12/2016 15:47:06] Pokemon defensor: Gengar
[16/12/2016 15:47:06] Entrando no escopo...
[16/12/2016 15:47:06] Valor da storage: Super Fang
[16/12/2016 15:47:06] Pokemon atacante: Raticate
[16/12/2016 15:47:06] Pokemon defensor: Gengar
[16/12/2016 15:47:06] Entrando no escopo...
[16/12/2016 15:47:06] Valor da storage: Super Fang
[16/12/2016 15:47:06] Pokemon atacante: Raticate
[16/12/2016 15:47:06] Pokemon defensor: Gengar
[16/12/2016 15:47:07] Entrando no escopo...
[16/12/2016 15:47:07] Valor da storage: Super Fang
[16/12/2016 15:47:07] Pokemon atacante: Raticate
[16/12/2016 15:47:07] Pokemon defensor: Gengar
[16/12/2016 15:47:07] Entrando no escopo...
[16/12/2016 15:47:07] Valor da storage: Super Fang
[16/12/2016 15:47:07] Pokemon atacante: Raticate
[16/12/2016 15:47:07] Pokemon defensor: Gengar
[16/12/2016 15:47:07] Entrando no escopo...
[16/12/2016 15:47:07] Valor da storage: Super Fang
[16/12/2016 15:47:07] Pokemon atacante: Raticate
[16/12/2016 15:47:07] Pokemon defensor: Gengar
[16/12/2016 15:47:08] Entrando no escopo...
[16/12/2016 15:47:08] Valor da storage: Super Fang
[16/12/2016 15:47:08] Pokemon atacante: Raticate
[16/12/2016 15:47:08] Pokemon defensor: Gengar
[16/12/2016 15:47:08] Entrando no escopo...
[16/12/2016 15:47:08] Valor da storage: Nightmare
[16/12/2016 15:47:08] Pokemon atacante: Gengar
[16/12/2016 15:47:08] Pokemon defensor: Raticate
[16/12/2016 15:47:08] Entrando no escopo...
[16/12/2016 15:47:08] Valor da storage: Night Shade
[16/12/2016 15:47:08] Pokemon atacante: Gengar
[16/12/2016 15:47:08] Pokemon defensor: Raticate
[16/12/2016 15:47:08] Entrando no escopo...
[16/12/2016 15:47:08] Valor da storage: Super Fang
[16/12/2016 15:47:08] Pokemon atacante: Raticate
[16/12/2016 15:47:08] Pokemon defensor: Gengar
[16/12/2016 15:47:08] Entrando no escopo...
[16/12/2016 15:47:08] Valor da storage: melee
[16/12/2016 15:47:08] Pokemon atacante: Raticate
[16/12/2016 15:47:08] Pokemon defensor: Gengar
[16/12/2016 15:47:08] Entrando no escopo de MELEE...
[16/12/2016 15:47:08] Value antes de getEffectvineCombat: -78
[16/12/2016 15:47:08] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:08] Entrando no escopo...
[16/12/2016 15:47:08] Valor da storage: Super Fang
[16/12/2016 15:47:08] Pokemon atacante: Raticate
[16/12/2016 15:47:08] Pokemon defensor: Gengar
[16/12/2016 15:47:08] Entrando no escopo...
[16/12/2016 15:47:08] Valor da storage: Super Fang
[16/12/2016 15:47:08] Pokemon atacante: Raticate
[16/12/2016 15:47:08] Pokemon defensor: Gengar
[16/12/2016 15:47:09] Entrando no escopo...
[16/12/2016 15:47:09] Valor da storage: Super Fang
[16/12/2016 15:47:09] Pokemon atacante: Raticate
[16/12/2016 15:47:09] Pokemon defensor: Gengar
[16/12/2016 15:47:09] Entrando no escopo...
[16/12/2016 15:47:09] Valor da storage: Super Fang
[16/12/2016 15:47:09] Pokemon atacante: Raticate
[16/12/2016 15:47:09] Pokemon defensor: Gengar
[16/12/2016 15:47:09] Entrando no escopo...
[16/12/2016 15:47:09] Valor da storage: Super Fang
[16/12/2016 15:47:09] Pokemon atacante: Raticate
[16/12/2016 15:47:09] Pokemon defensor: Gengar
[16/12/2016 15:47:10] Entrando no escopo...
[16/12/2016 15:47:10] Valor da storage: Super Fang
[16/12/2016 15:47:10] Pokemon atacante: Raticate
[16/12/2016 15:47:10] Pokemon defensor: Gengar
[16/12/2016 15:47:10] Entrando no escopo...
[16/12/2016 15:47:10] Valor da storage: melee
[16/12/2016 15:47:10] Pokemon atacante: Gengar
[16/12/2016 15:47:10] Pokemon defensor: Raticate
[16/12/2016 15:47:10] Entrando no escopo de MELEE...
[16/12/2016 15:47:10] Value antes de getEffectvineCombat: -80
[16/12/2016 15:47:10] Value depois de getEffectvineCombat: -80
[16/12/2016 15:47:10] Dano fica: -80
[16/12/2016 15:47:10] Entrando no escopo...
[16/12/2016 15:47:10] Valor da storage: Super Fang
[16/12/2016 15:47:10] Pokemon atacante: Raticate
[16/12/2016 15:47:10] Pokemon defensor: Gengar
[16/12/2016 15:47:10] Entrando no escopo...
[16/12/2016 15:47:10] Valor da storage: Super Fang
[16/12/2016 15:47:10] Pokemon atacante: Raticate
[16/12/2016 15:47:10] Pokemon defensor: Gengar
[16/12/2016 15:47:10] Entrando no escopo...
[16/12/2016 15:47:10] Valor da storage: Super Fang
[16/12/2016 15:47:10] Pokemon atacante: Raticate
[16/12/2016 15:47:10] Pokemon defensor: Gengar
[16/12/2016 15:47:11] Entrando no escopo...
[16/12/2016 15:47:11] Valor da storage: Super Fang
[16/12/2016 15:47:11] Pokemon atacante: Raticate
[16/12/2016 15:47:11] Pokemon defensor: Gengar
[16/12/2016 15:47:11] Entrando no escopo...
[16/12/2016 15:47:11] Valor da storage: Super Fang
[16/12/2016 15:47:11] Pokemon atacante: Raticate
[16/12/2016 15:47:11] Pokemon defensor: Gengar
[16/12/2016 15:47:11] Entrando no escopo...
[16/12/2016 15:47:11] Valor da storage: Super Fang
[16/12/2016 15:47:11] Pokemon atacante: Raticate
[16/12/2016 15:47:11] Pokemon defensor: Gengar
[16/12/2016 15:47:11] Entrando no escopo...
[16/12/2016 15:47:11] Valor da storage: melee
[16/12/2016 15:47:11] Pokemon atacante: Raticate
[16/12/2016 15:47:11] Pokemon defensor: Gengar
[16/12/2016 15:47:11] Entrando no escopo de MELEE...
[16/12/2016 15:47:11] Value antes de getEffectvineCombat: -80
[16/12/2016 15:47:11] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:12] Entrando no escopo...
[16/12/2016 15:47:12] Valor da storage: Dark Eye
[16/12/2016 15:47:12] Pokemon atacante: Gengar
[16/12/2016 15:47:12] Pokemon defensor: Raticate
[16/12/2016 15:47:12] Entrando no escopo...
[16/12/2016 15:47:12] Valor da storage: Super Fang
[16/12/2016 15:47:12] Pokemon atacante: Raticate
[16/12/2016 15:47:12] Pokemon defensor: Gengar
[16/12/2016 15:47:12] Entrando no escopo...
[16/12/2016 15:47:12] Valor da storage: Lick
[16/12/2016 15:47:12] Pokemon atacante: Gengar
[16/12/2016 15:47:12] Pokemon defensor: Raticate
[16/12/2016 15:47:12] Entrando no escopo...
[16/12/2016 15:47:12] Valor da storage: Super Fang
[16/12/2016 15:47:12] Pokemon atacante: Raticate
[16/12/2016 15:47:12] Pokemon defensor: Gengar
[16/12/2016 15:47:12] Entrando no escopo...
[16/12/2016 15:47:12] Valor da storage: Shadow Ball
[16/12/2016 15:47:12] Pokemon atacante: Gengar
[16/12/2016 15:47:12] Pokemon defensor: Raticate
[16/12/2016 15:47:12] Entrando no escopo...
[16/12/2016 15:47:12] Valor da storage: Super Fang
[16/12/2016 15:47:12] Pokemon atacante: Raticate
[16/12/2016 15:47:12] Pokemon defensor: Gengar
[16/12/2016 15:47:13] Entrando no escopo...
[16/12/2016 15:47:13] Valor da storage: Super Fang
[16/12/2016 15:47:13] Pokemon atacante: Raticate
[16/12/2016 15:47:13] Pokemon defensor: Gengar
[16/12/2016 15:47:13] Entrando no escopo...
[16/12/2016 15:47:13] Valor da storage: Super Fang
[16/12/2016 15:47:13] Pokemon atacante: Raticate
[16/12/2016 15:47:13] Pokemon defensor: Gengar
[16/12/2016 15:47:14] Entrando no escopo...
[16/12/2016 15:47:14] Valor da storage: Invisible
[16/12/2016 15:47:14] Pokemon atacante: Gengar
[16/12/2016 15:47:14] Pokemon defensor: Raticate
[16/12/2016 15:47:16] Entrando no escopo...
[16/12/2016 15:47:16] Valor da storage: melee
[16/12/2016 15:47:16] Pokemon atacante: Gengar
[16/12/2016 15:47:16] Pokemon defensor: Raticate
[16/12/2016 15:47:16] Entrando no escopo de MELEE...
[16/12/2016 15:47:16] Value antes de getEffectvineCombat: -82
[16/12/2016 15:47:16] Value depois de getEffectvineCombat: -82
[16/12/2016 15:47:16] Dano fica: -82
[16/12/2016 15:47:17] Entrando no escopo...
[16/12/2016 15:47:17] Valor da storage: Super Fang
[16/12/2016 15:47:17] Pokemon atacante: Raticate
[16/12/2016 15:47:17] Pokemon defensor: Gengar
[16/12/2016 15:47:17] Entrando no escopo...
[16/12/2016 15:47:17] Valor da storage: Super Fang
[16/12/2016 15:47:17] Pokemon atacante: Raticate
[16/12/2016 15:47:18] Pokemon defensor: Gengar
[16/12/2016 15:47:18] Entrando no escopo...
[16/12/2016 15:47:18] Valor da storage: melee
[16/12/2016 15:47:18] Pokemon atacante: Gengar
[16/12/2016 15:47:18] Pokemon defensor: Raticate
[16/12/2016 15:47:18] Entrando no escopo de MELEE...
[16/12/2016 15:47:18] Value antes de getEffectvineCombat: -84
[16/12/2016 15:47:18] Value depois de getEffectvineCombat: -84
[16/12/2016 15:47:18] Dano fica: -84
[16/12/2016 15:47:18] Entrando no escopo...
[16/12/2016 15:47:18] Valor da storage: Super Fang
[16/12/2016 15:47:18] Pokemon atacante: Raticate
[16/12/2016 15:47:18] Pokemon defensor: Gengar
[16/12/2016 15:47:18] Entrando no escopo...
[16/12/2016 15:47:18] Valor da storage: Super Fang
[16/12/2016 15:47:18] Pokemon atacante: Raticate
[16/12/2016 15:47:18] Pokemon defensor: Gengar
[16/12/2016 15:47:18] Entrando no escopo...
[16/12/2016 15:47:18] Valor da storage: Super Fang
[16/12/2016 15:47:18] Pokemon atacante: Raticate
[16/12/2016 15:47:18] Pokemon defensor: Gengar
[16/12/2016 15:47:19] Entrando no escopo...
[16/12/2016 15:47:19] Valor da storage: melee
[16/12/2016 15:47:19] Pokemon atacante: Raticate
[16/12/2016 15:47:19] Pokemon defensor: Gengar
[16/12/2016 15:47:19] Entrando no escopo de MELEE...
[16/12/2016 15:47:19] Value antes de getEffectvineCombat: -94
[16/12/2016 15:47:19] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:19] Entrando no escopo...
[16/12/2016 15:47:19] Valor da storage: Super Fang
[16/12/2016 15:47:19] Pokemon atacante: Raticate
[16/12/2016 15:47:19] Pokemon defensor: Gengar
[16/12/2016 15:47:19] Entrando no escopo...
[16/12/2016 15:47:19] Valor da storage: Super Fang
[16/12/2016 15:47:19] Pokemon atacante: Raticate
[16/12/2016 15:47:19] Pokemon defensor: Gengar
[16/12/2016 15:47:19] Entrando no escopo...
[16/12/2016 15:47:19] Valor da storage: Super Fang
[16/12/2016 15:47:19] Pokemon atacante: Raticate
[16/12/2016 15:47:19] Pokemon defensor: Gengar
[16/12/2016 15:47:20] Entrando no escopo...
[16/12/2016 15:47:20] Valor da storage: Super Fang
[16/12/2016 15:47:20] Pokemon atacante: Raticate
[16/12/2016 15:47:20] Pokemon defensor: Gengar
[16/12/2016 15:47:20] Entrando no escopo...
[16/12/2016 15:47:20] Valor da storage: melee
[16/12/2016 15:47:20] Pokemon atacante: Gengar
[16/12/2016 15:47:20] Pokemon defensor: Raticate
[16/12/2016 15:47:20] Entrando no escopo de MELEE...
[16/12/2016 15:47:20] Value antes de getEffectvineCombat: -71
[16/12/2016 15:47:20] Value depois de getEffectvineCombat: -71
[16/12/2016 15:47:20] Dano fica: -71
[16/12/2016 15:47:20] Entrando no escopo...
[16/12/2016 15:47:20] Valor da storage: Super Fang
[16/12/2016 15:47:20] Pokemon atacante: Raticate
[16/12/2016 15:47:20] Pokemon defensor: Gengar
[16/12/2016 15:47:20] Entrando no escopo...
[16/12/2016 15:47:20] Valor da storage: Super Fang
[16/12/2016 15:47:20] Pokemon atacante: Raticate
[16/12/2016 15:47:20] Pokemon defensor: Gengar
[16/12/2016 15:47:21] Entrando no escopo...
[16/12/2016 15:47:21] Valor da storage: Super Fang
[16/12/2016 15:47:21] Pokemon atacante: Raticate
[16/12/2016 15:47:21] Pokemon defensor: Gengar
[16/12/2016 15:47:21] Entrando no escopo...
[16/12/2016 15:47:21] Valor da storage: Super Fang
[16/12/2016 15:47:21] Pokemon atacante: Raticate
[16/12/2016 15:47:21] Pokemon defensor: Gengar
[16/12/2016 15:47:21] Entrando no escopo...
[16/12/2016 15:47:21] Valor da storage: Super Fang
[16/12/2016 15:47:21] Pokemon atacante: Raticate
[16/12/2016 15:47:21] Pokemon defensor: Gengar
[16/12/2016 15:47:21] Entrando no escopo...
[16/12/2016 15:47:21] Valor da storage: Super Fang
[16/12/2016 15:47:21] Pokemon atacante: Raticate
[16/12/2016 15:47:21] Pokemon defensor: Gengar
[16/12/2016 15:47:22] Entrando no escopo...
[16/12/2016 15:47:22] Valor da storage: Super Fang
[16/12/2016 15:47:22] Pokemon atacante: Raticate
[16/12/2016 15:47:22] Pokemon defensor: Gengar
[16/12/2016 15:47:22] Entrando no escopo...
[16/12/2016 15:47:22] Valor da storage: melee
[16/12/2016 15:47:22] Pokemon atacante: Gengar
[16/12/2016 15:47:22] Pokemon defensor: Raticate
[16/12/2016 15:47:22] Entrando no escopo de MELEE...
[16/12/2016 15:47:22] Value antes de getEffectvineCombat: -69
[16/12/2016 15:47:22] Value depois de getEffectvineCombat: -69
[16/12/2016 15:47:22] Dano fica: -69
[16/12/2016 15:47:22] Entrando no escopo...
[16/12/2016 15:47:22] Valor da storage: Super Fang
[16/12/2016 15:47:22] Pokemon atacante: Raticate
[16/12/2016 15:47:22] Pokemon defensor: Gengar
[16/12/2016 15:47:22] Entrando no escopo...
[16/12/2016 15:47:22] Valor da storage: melee
[16/12/2016 15:47:22] Pokemon atacante: Raticate
[16/12/2016 15:47:22] Pokemon defensor: Gengar
[16/12/2016 15:47:22] Entrando no escopo de MELEE...
[16/12/2016 15:47:22] Value antes de getEffectvineCombat: -72
[16/12/2016 15:47:22] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:22] Entrando no escopo...
[16/12/2016 15:47:22] Valor da storage: Super Fang
[16/12/2016 15:47:22] Pokemon atacante: Raticate
[16/12/2016 15:47:22] Pokemon defensor: Gengar
[16/12/2016 15:47:23] Entrando no escopo...
[16/12/2016 15:47:23] Valor da storage: Super Fang
[16/12/2016 15:47:23] Pokemon atacante: Raticate
[16/12/2016 15:47:23] Pokemon defensor: Gengar
[16/12/2016 15:47:23] Entrando no escopo...
[16/12/2016 15:47:23] Valor da storage: Super Fang
[16/12/2016 15:47:23] Pokemon atacante: Raticate
[16/12/2016 15:47:23] Pokemon defensor: Gengar
[16/12/2016 15:47:23] Entrando no escopo...
[16/12/2016 15:47:23] Valor da storage: Super Fang
[16/12/2016 15:47:23] Pokemon atacante: Raticate
[16/12/2016 15:47:23] Pokemon defensor: Gengar
[16/12/2016 15:47:24] Entrando no escopo...
[16/12/2016 15:47:24] Valor da storage: Super Fang
[16/12/2016 15:47:24] Pokemon atacante: Raticate
[16/12/2016 15:47:24] Pokemon defensor: Gengar
[16/12/2016 15:47:24] Entrando no escopo...
[16/12/2016 15:47:24] Valor da storage: Dark Eye
[16/12/2016 15:47:24] Pokemon atacante: Gengar
[16/12/2016 15:47:24] Pokemon defensor: Raticate
[16/12/2016 15:47:24] Entrando no escopo...
[16/12/2016 15:47:24] Valor da storage: Super Fang
[16/12/2016 15:47:24] Pokemon atacante: Raticate
[16/12/2016 15:47:24] Pokemon defensor: Gengar
[16/12/2016 15:47:24] Entrando no escopo...
[16/12/2016 15:47:24] Valor da storage: Super Fang
[16/12/2016 15:47:24] Pokemon atacante: Raticate
[16/12/2016 15:47:24] Pokemon defensor: Gengar
[16/12/2016 15:47:24] Entrando no escopo...
[16/12/2016 15:47:24] Valor da storage: Super Fang
[16/12/2016 15:47:24] Pokemon atacante: Raticate
[16/12/2016 15:47:25] Pokemon defensor: Gengar
[16/12/2016 15:47:25] Entrando no escopo...
[16/12/2016 15:47:25] Valor da storage: Super Fang
[16/12/2016 15:47:25] Pokemon atacante: Raticate
[16/12/2016 15:47:25] Pokemon defensor: Gengar
[16/12/2016 15:47:25] Entrando no escopo...
[16/12/2016 15:47:25] Valor da storage: Super Fang
[16/12/2016 15:47:25] Pokemon atacante: Raticate
[16/12/2016 15:47:25] Pokemon defensor: Gengar
[16/12/2016 15:47:25] Entrando no escopo...
[16/12/2016 15:47:25] Valor da storage: Super Fang
[16/12/2016 15:47:25] Pokemon atacante: Raticate
[16/12/2016 15:47:25] Pokemon defensor: Gengar
[16/12/2016 15:47:26] Entrando no escopo...
[16/12/2016 15:47:26] Valor da storage: melee
[16/12/2016 15:47:26] Pokemon atacante: Raticate
[16/12/2016 15:47:26] Pokemon defensor: Gengar
[16/12/2016 15:47:26] Entrando no escopo de MELEE...
[16/12/2016 15:47:26] Value antes de getEffectvineCombat: -70
[16/12/2016 15:47:26] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:26] Entrando no escopo...
[16/12/2016 15:47:26] Valor da storage: Super Fang
[16/12/2016 15:47:26] Pokemon atacante: Raticate
[16/12/2016 15:47:26] Pokemon defensor: Gengar
[16/12/2016 15:47:26] Entrando no escopo...
[16/12/2016 15:47:26] Valor da storage: Nightmare
[16/12/2016 15:47:26] Pokemon atacante: Gengar
[16/12/2016 15:47:26] Pokemon defensor: Raticate
[16/12/2016 15:47:26] Entrando no escopo...
[16/12/2016 15:47:26] Valor da storage: Fear
[16/12/2016 15:47:26] Pokemon atacante: Gengar
[16/12/2016 15:47:26] Pokemon defensor: Raticate
[16/12/2016 15:47:29] Entrando no escopo...
[16/12/2016 15:47:29] Valor da storage: Shadow Ball
[16/12/2016 15:47:29] Pokemon atacante: Gengar
[16/12/2016 15:47:29] Pokemon defensor: Raticate
[16/12/2016 15:47:29] Entrando no escopo...
[16/12/2016 15:47:29] Valor da storage: Super Fang
[16/12/2016 15:47:29] Pokemon atacante: Raticate
[16/12/2016 15:47:29] Pokemon defensor: Gengar
[16/12/2016 15:47:30] Entrando no escopo...
[16/12/2016 15:47:30] Valor da storage: Super Fang
[16/12/2016 15:47:30] Pokemon atacante: Raticate
[16/12/2016 15:47:30] Pokemon defensor: Gengar
[16/12/2016 15:47:30] Entrando no escopo...
[16/12/2016 15:47:30] Valor da storage: melee
[16/12/2016 15:47:30] Pokemon atacante: Gengar
[16/12/2016 15:47:30] Pokemon defensor: Raticate
[16/12/2016 15:47:30] Entrando no escopo de MELEE...
[16/12/2016 15:47:30] Value antes de getEffectvineCombat: -60
[16/12/2016 15:47:30] Value depois de getEffectvineCombat: -60
[16/12/2016 15:47:30] Dano fica: -60
[16/12/2016 15:47:30] Entrando no escopo...
[16/12/2016 15:47:30] Valor da storage: Super Fang
[16/12/2016 15:47:30] Pokemon atacante: Raticate
[16/12/2016 15:47:30] Pokemon defensor: Gengar
[16/12/2016 15:47:30] Entrando no escopo...
[16/12/2016 15:47:30] Valor da storage: Lick
[16/12/2016 15:47:30] Pokemon atacante: Gengar
[16/12/2016 15:47:30] Pokemon defensor: Raticate
[16/12/2016 15:47:30] Entrando no escopo...
[16/12/2016 15:47:30] Valor da storage: melee
[16/12/2016 15:47:30] Pokemon atacante: Raticate
[16/12/2016 15:47:30] Pokemon defensor: Gengar
[16/12/2016 15:47:30] Entrando no escopo de MELEE...
[16/12/2016 15:47:30] Value antes de getEffectvineCombat: -77
[16/12/2016 15:47:30] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:31] Entrando no escopo...
[16/12/2016 15:47:31] Valor da storage: Super Fang
[16/12/2016 15:47:31] Pokemon atacante: Raticate
[16/12/2016 15:47:31] Pokemon defensor: Gengar
[16/12/2016 15:47:32] Entrando no escopo...
[16/12/2016 15:47:32] Valor da storage: melee
[16/12/2016 15:47:32] Pokemon atacante: Gengar
[16/12/2016 15:47:32] Pokemon defensor: Raticate
[16/12/2016 15:47:32] Entrando no escopo de MELEE...
[16/12/2016 15:47:32] Value antes de getEffectvineCombat: -100
[16/12/2016 15:47:32] Value depois de getEffectvineCombat: -100
[16/12/2016 15:47:32] Dano fica: -100
[16/12/2016 15:47:33] Entrando no escopo...
[16/12/2016 15:47:33] Valor da storage: Super Fang
[16/12/2016 15:47:33] Pokemon atacante: Raticate
[16/12/2016 15:47:33] Pokemon defensor: Gengar
[16/12/2016 15:47:34] Entrando no escopo...
[16/12/2016 15:47:34] Valor da storage: Super Fang
[16/12/2016 15:47:34] Pokemon atacante: Raticate
[16/12/2016 15:47:34] Pokemon defensor: Gengar
[16/12/2016 15:47:34] Entrando no escopo...
[16/12/2016 15:47:34] Valor da storage: melee
[16/12/2016 15:47:34] Pokemon atacante: Raticate
[16/12/2016 15:47:34] Pokemon defensor: Gengar
[16/12/2016 15:47:34] Entrando no escopo de MELEE...
[16/12/2016 15:47:34] Value antes de getEffectvineCombat: -79
[16/12/2016 15:47:34] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:34] Entrando no escopo...
[16/12/2016 15:47:34] Valor da storage: Super Fang
[16/12/2016 15:47:34] Pokemon atacante: Raticate
[16/12/2016 15:47:34] Pokemon defensor: Gengar
[16/12/2016 15:47:34] Entrando no escopo...
[16/12/2016 15:47:34] Valor da storage: melee
[16/12/2016 15:47:34] Pokemon atacante: Gengar
[16/12/2016 15:47:34] Pokemon defensor: Raticate
[16/12/2016 15:47:34] Entrando no escopo de MELEE...
[16/12/2016 15:47:34] Value antes de getEffectvineCombat: -79
[16/12/2016 15:47:34] Value depois de getEffectvineCombat: -79
[16/12/2016 15:47:34] Dano fica: -79
[16/12/2016 15:47:34] Entrando no escopo...
[16/12/2016 15:47:34] Valor da storage: Super Fang
[16/12/2016 15:47:35] Pokemon atacante: Raticate
[16/12/2016 15:47:35] Pokemon defensor: Gengar
[16/12/2016 15:47:35] Entrando no escopo...
[16/12/2016 15:47:35] Valor da storage: Super Fang
[16/12/2016 15:47:35] Pokemon atacante: Raticate
[16/12/2016 15:47:35] Pokemon defensor: Gengar
[16/12/2016 15:47:35] Entrando no escopo...
[16/12/2016 15:47:35] Valor da storage: Shadow Ball
[16/12/2016 15:47:35] Pokemon atacante: Gengar
[16/12/2016 15:47:35] Pokemon defensor: Raticate
[16/12/2016 15:47:35] Entrando no escopo...
[16/12/2016 15:47:35] Valor da storage: Super Fang
[16/12/2016 15:47:35] Pokemon atacante: Raticate
[16/12/2016 15:47:35] Pokemon defensor: Gengar
[16/12/2016 15:47:35] Entrando no escopo...
[16/12/2016 15:47:35] Valor da storage: Super Fang
[16/12/2016 15:47:35] Pokemon atacante: Raticate
[16/12/2016 15:47:35] Pokemon defensor: Gengar
[16/12/2016 15:47:36] Entrando no escopo...
[16/12/2016 15:47:36] Valor da storage: Super Fang
[16/12/2016 15:47:36] Pokemon atacante: Raticate
[16/12/2016 15:47:36] Pokemon defensor: Gengar
[16/12/2016 15:47:36] Entrando no escopo...
[16/12/2016 15:47:36] Valor da storage: Super Fang
[16/12/2016 15:47:36] Pokemon atacante: Raticate
[16/12/2016 15:47:36] Pokemon defensor: Gengar
[16/12/2016 15:47:36] Entrando no escopo...
[16/12/2016 15:47:36] Valor da storage: melee
[16/12/2016 15:47:36] Pokemon atacante: Gengar
[16/12/2016 15:47:36] Pokemon defensor: Raticate
[16/12/2016 15:47:36] Entrando no escopo de MELEE...
[16/12/2016 15:47:36] Value antes de getEffectvineCombat: -70
[16/12/2016 15:47:36] Value depois de getEffectvineCombat: -70
[16/12/2016 15:47:36] Dano fica: -70
[16/12/2016 15:47:37] Entrando no escopo...
[16/12/2016 15:47:37] Valor da storage: Super Fang
[16/12/2016 15:47:37] Pokemon atacante: Raticate
[16/12/2016 15:47:37] Pokemon defensor: Gengar
[16/12/2016 15:47:37] Entrando no escopo...
[16/12/2016 15:47:37] Valor da storage: Super Fang
[16/12/2016 15:47:37] Pokemon atacante: Raticate
[16/12/2016 15:47:37] Pokemon defensor: Gengar
[16/12/2016 15:47:37] Entrando no escopo...
[16/12/2016 15:47:37] Valor da storage: Super Fang
[16/12/2016 15:47:37] Pokemon atacante: Raticate
[16/12/2016 15:47:37] Pokemon defensor: Gengar
[16/12/2016 15:47:37] Entrando no escopo...
[16/12/2016 15:47:37] Valor da storage: Super Fang
[16/12/2016 15:47:37] Pokemon atacante: Raticate
[16/12/2016 15:47:37] Pokemon defensor: Gengar
[16/12/2016 15:47:38] Entrando no escopo...
[16/12/2016 15:47:38] Valor da storage: Super Fang
[16/12/2016 15:47:38] Pokemon atacante: Raticate
[16/12/2016 15:47:38] Pokemon defensor: Gengar
[16/12/2016 15:47:38] Entrando no escopo...
[16/12/2016 15:47:38] Valor da storage: melee
[16/12/2016 15:47:38] Pokemon atacante: Raticate
[16/12/2016 15:47:38] Pokemon defensor: Gengar
[16/12/2016 15:47:38] Entrando no escopo de MELEE...
[16/12/2016 15:47:38] Value antes de getEffectvineCombat: -70
[16/12/2016 15:47:38] Value depois de getEffectvineCombat: 0
[16/12/2016 15:47:38] Entrando no escopo...
[16/12/2016 15:47:38] Valor da storage: Super Fang
[16/12/2016 15:47:38] Pokemon atacante: Raticate
[16/12/2016 15:47:38] Pokemon defensor: Gengar
[16/12/2016 15:47:38] Entrando no escopo...
[16/12/2016 15:47:38] Valor da storage: Hypnosis
[16/12/2016 15:47:38] Pokemon atacante: Gengar
[16/12/2016 15:47:38] Pokemon defensor: Raticate
[16/12/2016 15:47:38] Entrando no escopo...
[16/12/2016 15:47:38] Valor da storage: Super Fang
[16/12/2016 15:47:38] Pokemon atacante: Raticate
[16/12/2016 15:47:38] Pokemon defensor: Gengar
[16/12/2016 15:47:39] Entrando no escopo...
[16/12/2016 15:47:39] Valor da storage: melee
[16/12/2016 15:47:39] Pokemon atacante: Gengar
[16/12/2016 15:47:39] Pokemon defensor: Raticate
[16/12/2016 15:47:39] Entrando no escopo de MELEE...
[16/12/2016 15:47:39] Value antes de getEffectvineCombat: -84
[16/12/2016 15:47:39] Value depois de getEffectvineCombat: -84
[16/12/2016 15:47:39] Dano fica: -84
[16/12/2016 15:47:39] Entrando no escopo...
[16/12/2016 15:47:39] Valor da storage: Super Fang
[16/12/2016 15:47:39] Pokemon atacante: Raticate
[16/12/2016 15:47:39] Pokemon defensor: Gengar
[16/12/2016 15:47:39] Entrando no escopo...
[16/12/2016 15:47:39] Valor da storage: Super Fang
[16/12/2016 15:47:39] Pokemon atacante: Raticate
[16/12/2016 15:47:39] Pokemon defensor: Gengar
[16/12/2016 15:47:39] Entrando no escopo...
[16/12/2016 15:47:39] Valor da storage: Super Fang
[16/12/2016 15:47:39] Pokemon atacante: Raticate
[16/12/2016 15:47:39] Pokemon defensor: Gengar
[16/12/2016 15:47:40] Entrando no escopo...
[16/12/2016 15:47:40] Valor da storage: Super Fang
[16/12/2016 15:47:40] Pokemon atacante: Raticate
[16/12/2016 15:47:40] Pokemon defensor: Gengar
[16/12/2016 15:47:40] Entrando no escopo...
[16/12/2016 15:47:40] Valor da storage: Super Fang
[16/12/2016 15:47:40] Pokemon atacante: Raticate
[16/12/2016 15:47:40] Pokemon defensor: Gengar
[16/12/2016 15:47:40] Entrando no escopo...
[16/12/2016 15:47:40] Valor da storage: Super Fang
[16/12/2016 15:47:40] Pokemon atacante: Raticate
[16/12/2016 15:47:40] Pokemon defensor: Gengar
[16/12/2016 15:47:41] Entrando no escopo...
[16/12/2016 15:47:41] Valor da storage: Super Fang
[16/12/2016 15:47:41] Pokemon atacante: Raticate
[16/12/2016 15:47:41] Pokemon defensor: Gengar
[16/12/2016 15:47:41] Entrando no escopo...
[16/12/2016 15:47:41] Valor da storage: melee
[16/12/2016 15:47:41] Pokemon atacante: Gengar
[16/12/2016 15:47:41] Pokemon defensor: Raticate
[16/12/2016 15:47:41] Entrando no escopo de MELEE...
[16/12/2016 15:47:41] Value antes de getEffectvineCombat: -50
[16/12/2016 15:47:41] Value depois de getEffectvineCombat: -50
[16/12/2016 15:47:41] Dano fica: -50

 

tackle tb nao buga

Spoiler

[16/12/2016 15:49:56] Entrando no escopo...
[16/12/2016 15:49:56] Valor da storage: melee
[16/12/2016 15:49:56] Pokemon atacante: Gengar
[16/12/2016 15:49:56] Pokemon defensor: Venusaur
[16/12/2016 15:49:56] Entrando no escopo de MELEE...
[16/12/2016 15:49:56] Value antes de getEffectvineCombat: -77
[16/12/2016 15:49:56] Value depois de getEffectvineCombat: -77
[16/12/2016 15:49:56] Dano fica: -77
[16/12/2016 15:49:57] Entrando no escopo...
[16/12/2016 15:49:57] Valor da storage: melee
[16/12/2016 15:49:57] Pokemon atacante: Gengar
[16/12/2016 15:49:57] Pokemon defensor: Venusaur
[16/12/2016 15:49:57] Entrando no escopo de MELEE...
[16/12/2016 15:49:57] Value antes de getEffectvineCombat: -67
[16/12/2016 15:49:57] Value depois de getEffectvineCombat: -67
[16/12/2016 15:49:57] Dano fica: -67
[16/12/2016 15:49:59] Entrando no escopo...
[16/12/2016 15:49:59] Valor da storage: melee
[16/12/2016 15:49:59] Pokemon atacante: Gengar
[16/12/2016 15:49:59] Pokemon defensor: Venusaur
[16/12/2016 15:49:59] Entrando no escopo de MELEE...
[16/12/2016 15:49:59] Value antes de getEffectvineCombat: -85
[16/12/2016 15:49:59] Value depois de getEffectvineCombat: -85
[16/12/2016 15:49:59] Dano fica: -85
[16/12/2016 15:49:59] Entrando no escopo...
[16/12/2016 15:49:59] Valor da storage: Tackle
[16/12/2016 15:49:59] Pokemon atacante: Venusaur
[16/12/2016 15:49:59] Pokemon defensor: Gengar
[16/12/2016 15:49:59] Entrando no escopo...
[16/12/2016 15:49:59] Valor da storage: Tackle
[16/12/2016 15:49:59] Pokemon atacante: Venusaur
[16/12/2016 15:49:59] Pokemon defensor: Gengar
[16/12/2016 15:50:00] Entrando no escopo...
[16/12/2016 15:50:00] Valor da storage: Tackle
[16/12/2016 15:50:00] Pokemon atacante: Venusaur
[16/12/2016 15:50:00] Pokemon defensor: Gengar
[16/12/2016 15:50:00] Entrando no escopo...
[16/12/2016 15:50:00] Valor da storage: Tackle
[16/12/2016 15:50:00] Pokemon atacante: Venusaur
[16/12/2016 15:50:00] Pokemon defensor: Gengar
[16/12/2016 15:50:00] Entrando no escopo...
[16/12/2016 15:50:00] Valor da storage: Tackle
[16/12/2016 15:50:00] Pokemon atacante: Venusaur
[16/12/2016 15:50:00] Pokemon defensor: Gengar
[16/12/2016 15:50:00] Entrando no escopo...
[16/12/2016 15:50:00] Valor da storage: melee
[16/12/2016 15:50:00] Pokemon atacante: Venusaur
[16/12/2016 15:50:00] Pokemon defensor: Gengar
[16/12/2016 15:50:00] Entrando no escopo de MELEE...
[16/12/2016 15:50:00] Value antes de getEffectvineCombat: -88
[16/12/2016 15:50:00] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:00] Entrando no escopo...
[16/12/2016 15:50:00] Valor da storage: Shadow Punch
[16/12/2016 15:50:00] Pokemon atacante: Gengar
[16/12/2016 15:50:00] Pokemon defensor: Venusaur
[16/12/2016 15:50:00] Entrando no escopo...
[16/12/2016 15:50:00] Valor da storage: Tackle
[16/12/2016 15:50:00] Pokemon atacante: Venusaur
[16/12/2016 15:50:00] Pokemon defensor: Gengar
[16/12/2016 15:50:01] Entrando no escopo...
[16/12/2016 15:50:01] Valor da storage: melee
[16/12/2016 15:50:01] Pokemon atacante: Gengar
[16/12/2016 15:50:01] Pokemon defensor: Venusaur
[16/12/2016 15:50:01] Entrando no escopo de MELEE...
[16/12/2016 15:50:01] Value antes de getEffectvineCombat: -71
[16/12/2016 15:50:01] Value depois de getEffectvineCombat: -71
[16/12/2016 15:50:01] Dano fica: -71
[16/12/2016 15:50:01] Entrando no escopo...
[16/12/2016 15:50:01] Valor da storage: Tackle
[16/12/2016 15:50:01] Pokemon atacante: Venusaur
[16/12/2016 15:50:01] Pokemon defensor: Gengar
[16/12/2016 15:50:01] Entrando no escopo...
[16/12/2016 15:50:01] Valor da storage: Tackle
[16/12/2016 15:50:01] Pokemon atacante: Venusaur
[16/12/2016 15:50:01] Pokemon defensor: Gengar
[16/12/2016 15:50:01] Entrando no escopo...
[16/12/2016 15:50:01] Valor da storage: Tackle
[16/12/2016 15:50:01] Pokemon atacante: Venusaur
[16/12/2016 15:50:01] Pokemon defensor: Gengar
[16/12/2016 15:50:02] Entrando no escopo...
[16/12/2016 15:50:02] Valor da storage: Tackle
[16/12/2016 15:50:02] Pokemon atacante: Venusaur
[16/12/2016 15:50:02] Pokemon defensor: Gengar
[16/12/2016 15:50:02] Entrando no escopo...
[16/12/2016 15:50:02] Valor da storage: Tackle
[16/12/2016 15:50:02] Pokemon atacante: Venusaur
[16/12/2016 15:50:02] Pokemon defensor: Gengar
[16/12/2016 15:50:02] Entrando no escopo...
[16/12/2016 15:50:02] Valor da storage: Tackle
[16/12/2016 15:50:02] Pokemon atacante: Venusaur
[16/12/2016 15:50:02] Pokemon defensor: Gengar
[16/12/2016 15:50:02] Entrando no escopo...
[16/12/2016 15:50:02] Valor da storage: melee
[16/12/2016 15:50:02] Pokemon atacante: Venusaur
[16/12/2016 15:50:02] Pokemon defensor: Gengar
[16/12/2016 15:50:02] Entrando no escopo de MELEE...
[16/12/2016 15:50:02] Value antes de getEffectvineCombat: -74
[16/12/2016 15:50:02] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:03] Entrando no escopo...
[16/12/2016 15:50:03] Valor da storage: Tackle
[16/12/2016 15:50:03] Pokemon atacante: Venusaur
[16/12/2016 15:50:03] Pokemon defensor: Gengar
[16/12/2016 15:50:03] Entrando no escopo...
[16/12/2016 15:50:03] Valor da storage: melee
[16/12/2016 15:50:03] Pokemon atacante: Gengar
[16/12/2016 15:50:03] Pokemon defensor: Venusaur
[16/12/2016 15:50:03] Entrando no escopo de MELEE...
[16/12/2016 15:50:03] Value antes de getEffectvineCombat: -100
[16/12/2016 15:50:03] Value depois de getEffectvineCombat: -100
[16/12/2016 15:50:03] Dano fica: -100
[16/12/2016 15:50:03] Entrando no escopo...
[16/12/2016 15:50:03] Valor da storage: Tackle
[16/12/2016 15:50:03] Pokemon atacante: Venusaur
[16/12/2016 15:50:03] Pokemon defensor: Gengar
[16/12/2016 15:50:03] Entrando no escopo...
[16/12/2016 15:50:03] Valor da storage: Tackle
[16/12/2016 15:50:03] Pokemon atacante: Venusaur
[16/12/2016 15:50:03] Pokemon defensor: Gengar
[16/12/2016 15:50:03] Entrando no escopo...
[16/12/2016 15:50:03] Valor da storage: Tackle
[16/12/2016 15:50:03] Pokemon atacante: Venusaur
[16/12/2016 15:50:03] Pokemon defensor: Gengar
[16/12/2016 15:50:04] Entrando no escopo...
[16/12/2016 15:50:04] Valor da storage: Tackle
[16/12/2016 15:50:04] Pokemon atacante: Venusaur
[16/12/2016 15:50:04] Pokemon defensor: Gengar
[16/12/2016 15:50:04] Entrando no escopo...
[16/12/2016 15:50:04] Valor da storage: Tackle
[16/12/2016 15:50:04] Pokemon atacante: Venusaur
[16/12/2016 15:50:04] Pokemon defensor: Gengar
[16/12/2016 15:50:04] Entrando no escopo...
[16/12/2016 15:50:04] Valor da storage: Tackle
[16/12/2016 15:50:04] Pokemon atacante: Venusaur
[16/12/2016 15:50:04] Pokemon defensor: Gengar
[16/12/2016 15:50:05] Entrando no escopo...
[16/12/2016 15:50:05] Valor da storage: Tackle
[16/12/2016 15:50:05] Pokemon atacante: Venusaur
[16/12/2016 15:50:05] Pokemon defensor: Gengar
[16/12/2016 15:50:05] Entrando no escopo...
[16/12/2016 15:50:05] Valor da storage: melee
[16/12/2016 15:50:05] Pokemon atacante: Gengar
[16/12/2016 15:50:05] Pokemon defensor: Venusaur
[16/12/2016 15:50:05] Entrando no escopo de MELEE...
[16/12/2016 15:50:05] Value antes de getEffectvineCombat: -78
[16/12/2016 15:50:05] Value depois de getEffectvineCombat: -78
[16/12/2016 15:50:05] Dano fica: -78
[16/12/2016 15:50:05] Entrando no escopo...
[16/12/2016 15:50:05] Valor da storage: Tackle
[16/12/2016 15:50:05] Pokemon atacante: Venusaur
[16/12/2016 15:50:05] Pokemon defensor: Gengar
[16/12/2016 15:50:05] Entrando no escopo...
[16/12/2016 15:50:05] Valor da storage: Tackle
[16/12/2016 15:50:05] Pokemon atacante: Venusaur
[16/12/2016 15:50:05] Pokemon defensor: Gengar
[16/12/2016 15:50:05] Entrando no escopo...
[16/12/2016 15:50:05] Valor da storage: melee
[16/12/2016 15:50:05] Pokemon atacante: Venusaur
[16/12/2016 15:50:05] Pokemon defensor: Gengar
[16/12/2016 15:50:05] Entrando no escopo de MELEE...
[16/12/2016 15:50:05] Value antes de getEffectvineCombat: -85
[16/12/2016 15:50:05] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:05] Entrando no escopo...
[16/12/2016 15:50:05] Valor da storage: Tackle
[16/12/2016 15:50:05] Pokemon atacante: Venusaur
[16/12/2016 15:50:05] Pokemon defensor: Gengar
[16/12/2016 15:50:06] Entrando no escopo...
[16/12/2016 15:50:06] Valor da storage: Tackle
[16/12/2016 15:50:06] Pokemon atacante: Venusaur
[16/12/2016 15:50:06] Pokemon defensor: Gengar
[16/12/2016 15:50:06] Entrando no escopo...
[16/12/2016 15:50:06] Valor da storage: Tackle
[16/12/2016 15:50:06] Pokemon atacante: Venusaur
[16/12/2016 15:50:06] Pokemon defensor: Gengar
[16/12/2016 15:50:06] Entrando no escopo...
[16/12/2016 15:50:06] Valor da storage: Tackle
[16/12/2016 15:50:06] Pokemon atacante: Venusaur
[16/12/2016 15:50:06] Pokemon defensor: Gengar
[16/12/2016 15:50:06] Entrando no escopo...
[16/12/2016 15:50:06] Valor da storage: Shadow Punch
[16/12/2016 15:50:06] Pokemon atacante: Gengar
[16/12/2016 15:50:07] Pokemon defensor: Venusaur
[16/12/2016 15:50:07] Entrando no escopo...
[16/12/2016 15:50:07] Valor da storage: Tackle
[16/12/2016 15:50:07] Pokemon atacante: Venusaur
[16/12/2016 15:50:07] Pokemon defensor: Gengar
[16/12/2016 15:50:07] Entrando no escopo...
[16/12/2016 15:50:07] Valor da storage: melee
[16/12/2016 15:50:07] Pokemon atacante: Gengar
[16/12/2016 15:50:07] Pokemon defensor: Venusaur
[16/12/2016 15:50:07] Entrando no escopo de MELEE...
[16/12/2016 15:50:07] Value antes de getEffectvineCombat: -89
[16/12/2016 15:50:07] Value depois de getEffectvineCombat: -89
[16/12/2016 15:50:07] Dano fica: -89
[16/12/2016 15:50:07] Entrando no escopo...
[16/12/2016 15:50:07] Valor da storage: Tackle
[16/12/2016 15:50:07] Pokemon atacante: Venusaur
[16/12/2016 15:50:07] Pokemon defensor: Gengar
[16/12/2016 15:50:07] Entrando no escopo...
[16/12/2016 15:50:07] Valor da storage: Lick
[16/12/2016 15:50:07] Pokemon atacante: Gengar
[16/12/2016 15:50:07] Pokemon defensor: Venusaur
[16/12/2016 15:50:07] Entrando no escopo...
[16/12/2016 15:50:07] Valor da storage: Tackle
[16/12/2016 15:50:07] Pokemon atacante: Venusaur
[16/12/2016 15:50:07] Pokemon defensor: Gengar
[16/12/2016 15:50:08] Entrando no escopo...
[16/12/2016 15:50:08] Valor da storage: melee
[16/12/2016 15:50:08] Pokemon atacante: Venusaur
[16/12/2016 15:50:08] Pokemon defensor: Gengar
[16/12/2016 15:50:08] Entrando no escopo de MELEE...
[16/12/2016 15:50:08] Value antes de getEffectvineCombat: -81
[16/12/2016 15:50:08] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:08] Entrando no escopo...
[16/12/2016 15:50:08] Valor da storage: Tackle
[16/12/2016 15:50:08] Pokemon atacante: Venusaur
[16/12/2016 15:50:08] Pokemon defensor: Gengar
[16/12/2016 15:50:08] Entrando no escopo...
[16/12/2016 15:50:08] Valor da storage: Tackle
[16/12/2016 15:50:08] Pokemon atacante: Venusaur
[16/12/2016 15:50:08] Pokemon defensor: Gengar
[16/12/2016 15:50:08] Entrando no escopo...
[16/12/2016 15:50:08] Valor da storage: Tackle
[16/12/2016 15:50:08] Pokemon atacante: Venusaur
[16/12/2016 15:50:08] Pokemon defensor: Gengar
[16/12/2016 15:50:08] Entrando no escopo...
[16/12/2016 15:50:08] Valor da storage: Tackle
[16/12/2016 15:50:08] Pokemon atacante: Venusaur
[16/12/2016 15:50:08] Pokemon defensor: Gengar
[16/12/2016 15:50:09] Entrando no escopo...
[16/12/2016 15:50:09] Valor da storage: Hypnosis
[16/12/2016 15:50:09] Pokemon atacante: Gengar
[16/12/2016 15:50:09] Pokemon defensor: Venusaur
[16/12/2016 15:50:09] Entrando no escopo...
[16/12/2016 15:50:09] Valor da storage: Tackle
[16/12/2016 15:50:09] Pokemon atacante: Venusaur
[16/12/2016 15:50:09] Pokemon defensor: Gengar
[16/12/2016 15:50:09] Entrando no escopo...
[16/12/2016 15:50:09] Valor da storage: melee
[16/12/2016 15:50:09] Pokemon atacante: Gengar
[16/12/2016 15:50:09] Pokemon defensor: Venusaur
[16/12/2016 15:50:09] Entrando no escopo de MELEE...
[16/12/2016 15:50:09] Value antes de getEffectvineCombat: -62
[16/12/2016 15:50:09] Value depois de getEffectvineCombat: -62
[16/12/2016 15:50:09] Dano fica: -62
[16/12/2016 15:50:09] Entrando no escopo...
[16/12/2016 15:50:09] Valor da storage: Tackle
[16/12/2016 15:50:09] Pokemon atacante: Venusaur
[16/12/2016 15:50:09] Pokemon defensor: Gengar
[16/12/2016 15:50:09] Entrando no escopo...
[16/12/2016 15:50:09] Valor da storage: Tackle
[16/12/2016 15:50:09] Pokemon atacante: Venusaur
[16/12/2016 15:50:09] Pokemon defensor: Gengar
[16/12/2016 15:50:10] Entrando no escopo...
[16/12/2016 15:50:10] Valor da storage: Tackle
[16/12/2016 15:50:10] Pokemon atacante: Venusaur
[16/12/2016 15:50:10] Pokemon defensor: Gengar
[16/12/2016 15:50:10] Entrando no escopo...
[16/12/2016 15:50:10] Valor da storage: Tackle
[16/12/2016 15:50:10] Pokemon atacante: Venusaur
[16/12/2016 15:50:10] Pokemon defensor: Gengar
[16/12/2016 15:50:10] Entrando no escopo...
[16/12/2016 15:50:10] Valor da storage: Tackle
[16/12/2016 15:50:10] Pokemon atacante: Venusaur
[16/12/2016 15:50:10] Pokemon defensor: Gengar
[16/12/2016 15:50:11] Entrando no escopo...
[16/12/2016 15:50:11] Valor da storage: Tackle
[16/12/2016 15:50:11] Pokemon atacante: Venusaur
[16/12/2016 15:50:11] Pokemon defensor: Gengar
[16/12/2016 15:50:11] Entrando no escopo...
[16/12/2016 15:50:11] Valor da storage: melee
[16/12/2016 15:50:11] Pokemon atacante: Venusaur
[16/12/2016 15:50:11] Pokemon defensor: Gengar
[16/12/2016 15:50:11] Entrando no escopo de MELEE...
[16/12/2016 15:50:11] Value antes de getEffectvineCombat: -88
[16/12/2016 15:50:11] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:11] Entrando no escopo...
[16/12/2016 15:50:11] Valor da storage: Tackle
[16/12/2016 15:50:11] Pokemon atacante: Venusaur
[16/12/2016 15:50:11] Pokemon defensor: Gengar
[16/12/2016 15:50:11] Entrando no escopo...
[16/12/2016 15:50:11] Valor da storage: melee
[16/12/2016 15:50:11] Pokemon atacante: Gengar
[16/12/2016 15:50:11] Pokemon defensor: Venusaur
[16/12/2016 15:50:11] Entrando no escopo de MELEE...
[16/12/2016 15:50:11] Value antes de getEffectvineCombat: -72
[16/12/2016 15:50:11] Value depois de getEffectvineCombat: -72
[16/12/2016 15:50:11] Dano fica: -72
[16/12/2016 15:50:11] Entrando no escopo...
[16/12/2016 15:50:11] Valor da storage: Tackle
[16/12/2016 15:50:11] Pokemon atacante: Venusaur
[16/12/2016 15:50:11] Pokemon defensor: Gengar
[16/12/2016 15:50:11] Entrando no escopo...
[16/12/2016 15:50:11] Valor da storage: Tackle
[16/12/2016 15:50:11] Pokemon atacante: Venusaur
[16/12/2016 15:50:11] Pokemon defensor: Gengar
[16/12/2016 15:50:12] Entrando no escopo...
[16/12/2016 15:50:12] Valor da storage: Tackle
[16/12/2016 15:50:12] Pokemon atacante: Venusaur
[16/12/2016 15:50:12] Pokemon defensor: Gengar
[16/12/2016 15:50:12] Entrando no escopo...
[16/12/2016 15:50:12] Valor da storage: Tackle
[16/12/2016 15:50:12] Pokemon atacante: Venusaur
[16/12/2016 15:50:12] Pokemon defensor: Gengar
[16/12/2016 15:50:12] Entrando no escopo...
[16/12/2016 15:50:12] Valor da storage: Tackle
[16/12/2016 15:50:12] Pokemon atacante: Venusaur
[16/12/2016 15:50:12] Pokemon defensor: Gengar
[16/12/2016 15:50:13] Entrando no escopo...
[16/12/2016 15:50:13] Valor da storage: melee
[16/12/2016 15:50:13] Pokemon atacante: Venusaur
[16/12/2016 15:50:13] Pokemon defensor: Gengar
[16/12/2016 15:50:13] Entrando no escopo de MELEE...
[16/12/2016 15:50:13] Value antes de getEffectvineCombat: -75
[16/12/2016 15:50:13] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:13] Entrando no escopo...
[16/12/2016 15:50:13] Valor da storage: Tackle
[16/12/2016 15:50:13] Pokemon atacante: Venusaur
[16/12/2016 15:50:13] Pokemon defensor: Gengar
[16/12/2016 15:50:13] Entrando no escopo...
[16/12/2016 15:50:13] Valor da storage: Tackle
[16/12/2016 15:50:13] Pokemon atacante: Venusaur
[16/12/2016 15:50:13] Pokemon defensor: Gengar
[16/12/2016 15:50:13] Entrando no escopo...
[16/12/2016 15:50:13] Valor da storage: melee
[16/12/2016 15:50:13] Pokemon atacante: Gengar
[16/12/2016 15:50:13] Pokemon defensor: Venusaur
[16/12/2016 15:50:13] Entrando no escopo de MELEE...
[16/12/2016 15:50:13] Value antes de getEffectvineCombat: -79
[16/12/2016 15:50:13] Value depois de getEffectvineCombat: -79
[16/12/2016 15:50:13] Dano fica: -79
[16/12/2016 15:50:13] Entrando no escopo...
[16/12/2016 15:50:13] Valor da storage: Lick
[16/12/2016 15:50:13] Pokemon atacante: Gengar
[16/12/2016 15:50:13] Pokemon defensor: Venusaur
[16/12/2016 15:50:13] Entrando no escopo...
[16/12/2016 15:50:13] Valor da storage: Tackle
[16/12/2016 15:50:13] Pokemon atacante: Venusaur
[16/12/2016 15:50:13] Pokemon defensor: Gengar
[16/12/2016 15:50:14] Entrando no escopo...
[16/12/2016 15:50:14] Valor da storage: Tackle
[16/12/2016 15:50:14] Pokemon atacante: Venusaur
[16/12/2016 15:50:14] Pokemon defensor: Gengar
[16/12/2016 15:50:14] Entrando no escopo...
[16/12/2016 15:50:14] Valor da storage: Shadow Ball
[16/12/2016 15:50:14] Pokemon atacante: Gengar
[16/12/2016 15:50:14] Pokemon defensor: Venusaur
[16/12/2016 15:50:14] Entrando no escopo...
[16/12/2016 15:50:14] Valor da storage: Tackle
[16/12/2016 15:50:14] Pokemon atacante: Venusaur
[16/12/2016 15:50:14] Pokemon defensor: Gengar
[16/12/2016 15:50:14] Entrando no escopo...
[16/12/2016 15:50:14] Valor da storage: Tackle
[16/12/2016 15:50:14] Pokemon atacante: Venusaur
[16/12/2016 15:50:14] Pokemon defensor: Gengar
[16/12/2016 15:50:14] Entrando no escopo...
[16/12/2016 15:50:14] Valor da storage: Tackle
[16/12/2016 15:50:14] Pokemon atacante: Venusaur
[16/12/2016 15:50:14] Pokemon defensor: Gengar
[16/12/2016 15:50:15] Entrando no escopo...
[16/12/2016 15:50:15] Valor da storage: Tackle
[16/12/2016 15:50:15] Pokemon atacante: Venusaur
[16/12/2016 15:50:15] Pokemon defensor: Gengar
[16/12/2016 15:50:15] Entrando no escopo...
[16/12/2016 15:50:15] Valor da storage: Tackle
[16/12/2016 15:50:15] Pokemon atacante: Venusaur
[16/12/2016 15:50:15] Pokemon defensor: Gengar
[16/12/2016 15:50:15] Entrando no escopo...
[16/12/2016 15:50:15] Valor da storage: melee
[16/12/2016 15:50:15] Pokemon atacante: Gengar
[16/12/2016 15:50:15] Pokemon defensor: Venusaur
[16/12/2016 15:50:15] Entrando no escopo de MELEE...
[16/12/2016 15:50:15] Value antes de getEffectvineCombat: -80
[16/12/2016 15:50:15] Value depois de getEffectvineCombat: -80
[16/12/2016 15:50:15] Dano fica: -80
[16/12/2016 15:50:15] Entrando no escopo...
[16/12/2016 15:50:15] Valor da storage: Fear
[16/12/2016 15:50:15] Pokemon atacante: Gengar
[16/12/2016 15:50:15] Pokemon defensor: Venusaur
[16/12/2016 15:50:17] Entrando no escopo...
[16/12/2016 15:50:17] Valor da storage: Shadow Ball
[16/12/2016 15:50:17] Pokemon atacante: Gengar
[16/12/2016 15:50:17] Pokemon defensor: Venusaur
[16/12/2016 15:50:18] Entrando no escopo...
[16/12/2016 15:50:18] Valor da storage: Tackle
[16/12/2016 15:50:18] Pokemon atacante: Venusaur
[16/12/2016 15:50:18] Pokemon defensor: Gengar
[16/12/2016 15:50:18] Entrando no escopo...
[16/12/2016 15:50:18] Valor da storage: Tackle
[16/12/2016 15:50:18] Pokemon atacante: Venusaur
[16/12/2016 15:50:18] Pokemon defensor: Gengar
[16/12/2016 15:50:18] Entrando no escopo...
[16/12/2016 15:50:18] Valor da storage: Tackle
[16/12/2016 15:50:18] Pokemon atacante: Venusaur
[16/12/2016 15:50:18] Pokemon defensor: Gengar
[16/12/2016 15:50:19] Entrando no escopo...
[16/12/2016 15:50:19] Valor da storage: Tackle
[16/12/2016 15:50:19] Pokemon atacante: Venusaur
[16/12/2016 15:50:19] Pokemon defensor: Gengar
[16/12/2016 15:50:19] Entrando no escopo...
[16/12/2016 15:50:19] Valor da storage: melee
[16/12/2016 15:50:19] Pokemon atacante: Venusaur
[16/12/2016 15:50:19] Pokemon defensor: Gengar
[16/12/2016 15:50:19] Entrando no escopo de MELEE...
[16/12/2016 15:50:19] Value antes de getEffectvineCombat: -50
[16/12/2016 15:50:19] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:19] Entrando no escopo...
[16/12/2016 15:50:19] Valor da storage: Tackle
[16/12/2016 15:50:19] Pokemon atacante: Venusaur
[16/12/2016 15:50:19] Pokemon defensor: Gengar
[16/12/2016 15:50:19] Entrando no escopo...
[16/12/2016 15:50:19] Valor da storage: Tackle
[16/12/2016 15:50:19] Pokemon atacante: Venusaur
[16/12/2016 15:50:19] Pokemon defensor: Gengar
[16/12/2016 15:50:19] Entrando no escopo...
[16/12/2016 15:50:19] Valor da storage: Dark Eye
[16/12/2016 15:50:19] Pokemon atacante: Gengar
[16/12/2016 15:50:19] Pokemon defensor: Venusaur
[16/12/2016 15:50:20] Entrando no escopo...
[16/12/2016 15:50:20] Valor da storage: Tackle
[16/12/2016 15:50:20] Pokemon atacante: Venusaur
[16/12/2016 15:50:20] Pokemon defensor: Gengar
[16/12/2016 15:50:20] Entrando no escopo...
[16/12/2016 15:50:20] Valor da storage: Tackle
[16/12/2016 15:50:20] Pokemon atacante: Venusaur
[16/12/2016 15:50:20] Pokemon defensor: Gengar
[16/12/2016 15:50:20] Entrando no escopo...
[16/12/2016 15:50:20] Valor da storage: Shadow Ball
[16/12/2016 15:50:20] Pokemon atacante: Gengar
[16/12/2016 15:50:20] Pokemon defensor: Venusaur
[16/12/2016 15:50:20] Entrando no escopo...
[16/12/2016 15:50:20] Valor da storage: Tackle
[16/12/2016 15:50:20] Pokemon atacante: Venusaur
[16/12/2016 15:50:20] Pokemon defensor: Gengar
[16/12/2016 15:50:20] Entrando no escopo...
[16/12/2016 15:50:20] Valor da storage: Tackle
[16/12/2016 15:50:20] Pokemon atacante: Venusaur
[16/12/2016 15:50:20] Pokemon defensor: Gengar
[16/12/2016 15:50:21] Entrando no escopo...
[16/12/2016 15:50:21] Valor da storage: Tackle
[16/12/2016 15:50:21] Pokemon atacante: Venusaur
[16/12/2016 15:50:21] Pokemon defensor: Gengar
[16/12/2016 15:50:21] Entrando no escopo...
[16/12/2016 15:50:21] Valor da storage: Hypnosis
[16/12/2016 15:50:21] Pokemon atacante: Gengar
[16/12/2016 15:50:21] Pokemon defensor: Venusaur
[16/12/2016 15:50:21] Entrando no escopo...
[16/12/2016 15:50:21] Valor da storage: melee
[16/12/2016 15:50:21] Pokemon atacante: Gengar
[16/12/2016 15:50:21] Pokemon defensor: Venusaur
[16/12/2016 15:50:21] Entrando no escopo de MELEE...
[16/12/2016 15:50:21] Value antes de getEffectvineCombat: -72
[16/12/2016 15:50:21] Value depois de getEffectvineCombat: -72
[16/12/2016 15:50:21] Dano fica: -72
[16/12/2016 15:50:23] Entrando no escopo...
[16/12/2016 15:50:23] Valor da storage: melee
[16/12/2016 15:50:23] Pokemon atacante: Gengar
[16/12/2016 15:50:23] Pokemon defensor: Venusaur
[16/12/2016 15:50:23] Entrando no escopo de MELEE...
[16/12/2016 15:50:23] Value antes de getEffectvineCombat: -78
[16/12/2016 15:50:23] Value depois de getEffectvineCombat: -78
[16/12/2016 15:50:23] Dano fica: -78
[16/12/2016 15:50:25] Entrando no escopo...
[16/12/2016 15:50:25] Valor da storage: Dark Eye
[16/12/2016 15:50:25] Pokemon atacante: Gengar
[16/12/2016 15:50:25] Pokemon defensor: Venusaur
[16/12/2016 15:50:26] Entrando no escopo...
[16/12/2016 15:50:26] Valor da storage: Shadow Ball
[16/12/2016 15:50:26] Pokemon atacante: Gengar
[16/12/2016 15:50:26] Pokemon defensor: Venusaur
[16/12/2016 15:50:27] Entrando no escopo...
[16/12/2016 15:50:27] Valor da storage: melee
[16/12/2016 15:50:27] Pokemon atacante: Gengar
[16/12/2016 15:50:27] Pokemon defensor: Venusaur
[16/12/2016 15:50:27] Entrando no escopo de MELEE...
[16/12/2016 15:50:28] Value antes de getEffectvineCombat: -87
[16/12/2016 15:50:28] Value depois de getEffectvineCombat: -87
[16/12/2016 15:50:28] Dano fica: -87
[16/12/2016 15:50:28] Entrando no escopo...
[16/12/2016 15:50:28] Valor da storage: Tackle
[16/12/2016 15:50:28] Pokemon atacante: Venusaur
[16/12/2016 15:50:28] Pokemon defensor: Gengar
[16/12/2016 15:50:28] Entrando no escopo...
[16/12/2016 15:50:28] Valor da storage: Tackle
[16/12/2016 15:50:28] Pokemon atacante: Venusaur
[16/12/2016 15:50:28] Pokemon defensor: Gengar
[16/12/2016 15:50:29] Entrando no escopo...
[16/12/2016 15:50:29] Valor da storage: Tackle
[16/12/2016 15:50:29] Pokemon atacante: Venusaur
[16/12/2016 15:50:29] Pokemon defensor: Gengar
[16/12/2016 15:50:29] Entrando no escopo...
[16/12/2016 15:50:29] Valor da storage: Tackle
[16/12/2016 15:50:29] Pokemon atacante: Venusaur
[16/12/2016 15:50:29] Pokemon defensor: Gengar
[16/12/2016 15:50:29] Entrando no escopo...
[16/12/2016 15:50:29] Valor da storage: Shadow Storm
[16/12/2016 15:50:29] Pokemon atacante: Gengar
[16/12/2016 15:50:29] Pokemon defensor: Venusaur
[16/12/2016 15:50:29] Entrando no escopo...
[16/12/2016 15:50:29] Valor da storage: melee
[16/12/2016 15:50:29] Pokemon atacante: Venusaur
[16/12/2016 15:50:29] Pokemon defensor: Gengar
[16/12/2016 15:50:29] Entrando no escopo de MELEE...
[16/12/2016 15:50:29] Value antes de getEffectvineCombat: -90
[16/12/2016 15:50:29] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:29] Entrando no escopo...
[16/12/2016 15:50:29] Valor da storage: Tackle
[16/12/2016 15:50:29] Pokemon atacante: Venusaur
[16/12/2016 15:50:29] Pokemon defensor: Gengar
[16/12/2016 15:50:30] Entrando no escopo...
[16/12/2016 15:50:30] Valor da storage: Tackle
[16/12/2016 15:50:30] Pokemon atacante: Venusaur
[16/12/2016 15:50:30] Pokemon defensor: Gengar
[16/12/2016 15:50:30] Entrando no escopo...
[16/12/2016 15:50:30] Valor da storage: melee
[16/12/2016 15:50:30] Pokemon atacante: Gengar
[16/12/2016 15:50:30] Pokemon defensor: Venusaur
[16/12/2016 15:50:30] Entrando no escopo de MELEE...
[16/12/2016 15:50:30] Value antes de getEffectvineCombat: -83
[16/12/2016 15:50:30] Value depois de getEffectvineCombat: -83
[16/12/2016 15:50:30] Dano fica: -83
[16/12/2016 15:50:30] Entrando no escopo...
[16/12/2016 15:50:30] Valor da storage: Tackle
[16/12/2016 15:50:30] Pokemon atacante: Venusaur
[16/12/2016 15:50:30] Pokemon defensor: Gengar
[16/12/2016 15:50:30] Entrando no escopo...
[16/12/2016 15:50:30] Valor da storage: Tackle
[16/12/2016 15:50:30] Pokemon atacante: Venusaur
[16/12/2016 15:50:30] Pokemon defensor: Gengar
[16/12/2016 15:50:30] Entrando no escopo...
[16/12/2016 15:50:30] Valor da storage: Shadow Ball
[16/12/2016 15:50:30] Pokemon atacante: Gengar
[16/12/2016 15:50:30] Pokemon defensor: Venusaur
[16/12/2016 15:50:30] Entrando no escopo...
[16/12/2016 15:50:30] Valor da storage: Tackle
[16/12/2016 15:50:30] Pokemon atacante: Venusaur
[16/12/2016 15:50:31] Pokemon defensor: Gengar
[16/12/2016 15:50:31] Entrando no escopo...
[16/12/2016 15:50:31] Valor da storage: Tackle
[16/12/2016 15:50:31] Pokemon atacante: Venusaur
[16/12/2016 15:50:31] Pokemon defensor: Gengar
[16/12/2016 15:50:31] Entrando no escopo...
[16/12/2016 15:50:31] Valor da storage: Tackle
[16/12/2016 15:50:31] Pokemon atacante: Venusaur
[16/12/2016 15:50:31] Pokemon defensor: Gengar
[16/12/2016 15:50:31] Entrando no escopo...
[16/12/2016 15:50:31] Valor da storage: melee
[16/12/2016 15:50:31] Pokemon atacante: Venusaur
[16/12/2016 15:50:31] Pokemon defensor: Gengar
[16/12/2016 15:50:31] Entrando no escopo de MELEE...
[16/12/2016 15:50:31] Value antes de getEffectvineCombat: -71
[16/12/2016 15:50:31] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:31] Entrando no escopo...
[16/12/2016 15:50:31] Valor da storage: Tackle
[16/12/2016 15:50:31] Pokemon atacante: Venusaur
[16/12/2016 15:50:31] Pokemon defensor: Gengar
[16/12/2016 15:50:32] Entrando no escopo...
[16/12/2016 15:50:32] Valor da storage: melee
[16/12/2016 15:50:32] Pokemon atacante: Gengar
[16/12/2016 15:50:32] Pokemon defensor: Venusaur
[16/12/2016 15:50:32] Entrando no escopo de MELEE...
[16/12/2016 15:50:32] Value antes de getEffectvineCombat: -72
[16/12/2016 15:50:32] Value depois de getEffectvineCombat: -72
[16/12/2016 15:50:32] Dano fica: -72
[16/12/2016 15:50:32] Entrando no escopo...
[16/12/2016 15:50:32] Valor da storage: Tackle
[16/12/2016 15:50:32] Pokemon atacante: Venusaur
[16/12/2016 15:50:32] Pokemon defensor: Gengar
[16/12/2016 15:50:32] Entrando no escopo...
[16/12/2016 15:50:32] Valor da storage: Tackle
[16/12/2016 15:50:32] Pokemon atacante: Venusaur
[16/12/2016 15:50:32] Pokemon defensor: Gengar
[16/12/2016 15:50:32] Entrando no escopo...
[16/12/2016 15:50:32] Valor da storage: Tackle
[16/12/2016 15:50:32] Pokemon atacante: Venusaur
[16/12/2016 15:50:32] Pokemon defensor: Gengar
[16/12/2016 15:50:33] Entrando no escopo...
[16/12/2016 15:50:33] Valor da storage: Tackle
[16/12/2016 15:50:33] Pokemon atacante: Venusaur
[16/12/2016 15:50:33] Pokemon defensor: Gengar
[16/12/2016 15:50:33] Entrando no escopo...
[16/12/2016 15:50:33] Valor da storage: Tackle
[16/12/2016 15:50:33] Pokemon atacante: Venusaur
[16/12/2016 15:50:33] Pokemon defensor: Gengar
[16/12/2016 15:50:33] Entrando no escopo...
[16/12/2016 15:50:33] Valor da storage: Tackle
[16/12/2016 15:50:33] Pokemon atacante: Venusaur
[16/12/2016 15:50:33] Pokemon defensor: Gengar
[16/12/2016 15:50:34] Entrando no escopo...
[16/12/2016 15:50:34] Valor da storage: Tackle
[16/12/2016 15:50:34] Pokemon atacante: Venusaur
[16/12/2016 15:50:34] Pokemon defensor: Gengar
[16/12/2016 15:50:34] Entrando no escopo...
[16/12/2016 15:50:34] Valor da storage: melee
[16/12/2016 15:50:34] Pokemon atacante: Gengar
[16/12/2016 15:50:34] Pokemon defensor: Venusaur
[16/12/2016 15:50:34] Entrando no escopo de MELEE...
[16/12/2016 15:50:34] Value antes de getEffectvineCombat: -69
[16/12/2016 15:50:34] Value depois de getEffectvineCombat: -69
[16/12/2016 15:50:34] Dano fica: -69
[16/12/2016 15:50:34] Entrando no escopo...
[16/12/2016 15:50:34] Valor da storage: Night Shade
[16/12/2016 15:50:34] Pokemon atacante: Gengar
[16/12/2016 15:50:34] Pokemon defensor: Venusaur
[16/12/2016 15:50:34] Entrando no escopo...
[16/12/2016 15:50:34] Valor da storage: Tackle
[16/12/2016 15:50:34] Pokemon atacante: Venusaur
[16/12/2016 15:50:34] Pokemon defensor: Gengar
[16/12/2016 15:50:34] Entrando no escopo...
[16/12/2016 15:50:34] Valor da storage: Tackle
[16/12/2016 15:50:34] Pokemon atacante: Venusaur
[16/12/2016 15:50:34] Pokemon defensor: Gengar
[16/12/2016 15:50:35] Entrando no escopo...
[16/12/2016 15:50:35] Valor da storage: Tackle
[16/12/2016 15:50:35] Pokemon atacante: Venusaur
[16/12/2016 15:50:35] Pokemon defensor: Gengar
[16/12/2016 15:50:35] Entrando no escopo...
[16/12/2016 15:50:35] Valor da storage: melee
[16/12/2016 15:50:35] Pokemon atacante: Venusaur
[16/12/2016 15:50:35] Pokemon defensor: Gengar
[16/12/2016 15:50:35] Entrando no escopo de MELEE...
[16/12/2016 15:50:35] Value antes de getEffectvineCombat: -81
[16/12/2016 15:50:35] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:35] Entrando no escopo...
[16/12/2016 15:50:35] Valor da storage: Tackle
[16/12/2016 15:50:35] Pokemon atacante: Venusaur
[16/12/2016 15:50:35] Pokemon defensor: Gengar
[16/12/2016 15:50:35] Entrando no escopo...
[16/12/2016 15:50:35] Valor da storage: Tackle
[16/12/2016 15:50:35] Pokemon atacante: Venusaur
[16/12/2016 15:50:35] Pokemon defensor: Gengar
[16/12/2016 15:50:36] Entrando no escopo...
[16/12/2016 15:50:36] Valor da storage: Tackle
[16/12/2016 15:50:36] Pokemon atacante: Venusaur
[16/12/2016 15:50:36] Pokemon defensor: Gengar
[16/12/2016 15:50:36] Entrando no escopo...
[16/12/2016 15:50:36] Valor da storage: Tackle
[16/12/2016 15:50:36] Pokemon atacante: Venusaur
[16/12/2016 15:50:36] Pokemon defensor: Gengar
[16/12/2016 15:50:36] Entrando no escopo...
[16/12/2016 15:50:36] Valor da storage: melee
[16/12/2016 15:50:36] Pokemon atacante: Gengar
[16/12/2016 15:50:36] Pokemon defensor: Venusaur
[16/12/2016 15:50:36] Entrando no escopo de MELEE...
[16/12/2016 15:50:36] Value antes de getEffectvineCombat: -86
[16/12/2016 15:50:36] Value depois de getEffectvineCombat: -86
[16/12/2016 15:50:36] Dano fica: -86
[16/12/2016 15:50:36] Entrando no escopo...
[16/12/2016 15:50:36] Valor da storage: Tackle
[16/12/2016 15:50:36] Pokemon atacante: Venusaur
[16/12/2016 15:50:36] Pokemon defensor: Gengar
[16/12/2016 15:50:37] Entrando no escopo...
[16/12/2016 15:50:37] Valor da storage: Tackle
[16/12/2016 15:50:37] Pokemon atacante: Venusaur
[16/12/2016 15:50:37] Pokemon defensor: Gengar
[16/12/2016 15:50:37] Entrando no escopo...
[16/12/2016 15:50:37] Valor da storage: melee
[16/12/2016 15:50:37] Pokemon atacante: Venusaur
[16/12/2016 15:50:37] Pokemon defensor: Gengar
[16/12/2016 15:50:37] Entrando no escopo de MELEE...
[16/12/2016 15:50:37] Value antes de getEffectvineCombat: -85
[16/12/2016 15:50:37] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:37] Entrando no escopo...
[16/12/2016 15:50:37] Valor da storage: Tackle
[16/12/2016 15:50:37] Pokemon atacante: Venusaur
[16/12/2016 15:50:37] Pokemon defensor: Gengar
[16/12/2016 15:50:37] Entrando no escopo...
[16/12/2016 15:50:37] Valor da storage: Tackle
[16/12/2016 15:50:37] Pokemon atacante: Venusaur
[16/12/2016 15:50:37] Pokemon defensor: Gengar
[16/12/2016 15:50:37] Entrando no escopo...
[16/12/2016 15:50:37] Valor da storage: Tackle
[16/12/2016 15:50:37] Pokemon atacante: Venusaur
[16/12/2016 15:50:37] Pokemon defensor: Gengar
[16/12/2016 15:50:38] Entrando no escopo...
[16/12/2016 15:50:38] Valor da storage: Tackle
[16/12/2016 15:50:38] Pokemon atacante: Venusaur
[16/12/2016 15:50:38] Pokemon defensor: Gengar
[16/12/2016 15:50:38] Entrando no escopo...
[16/12/2016 15:50:38] Valor da storage: Tackle
[16/12/2016 15:50:38] Pokemon atacante: Venusaur
[16/12/2016 15:50:38] Pokemon defensor: Gengar
[16/12/2016 15:50:38] Entrando no escopo...
[16/12/2016 15:50:38] Valor da storage: melee
[16/12/2016 15:50:38] Pokemon atacante: Gengar
[16/12/2016 15:50:38] Pokemon defensor: Venusaur
[16/12/2016 15:50:38] Entrando no escopo de MELEE...
[16/12/2016 15:50:38] Value antes de getEffectvineCombat: -76
[16/12/2016 15:50:38] Value depois de getEffectvineCombat: -76
[16/12/2016 15:50:38] Dano fica: -76
[16/12/2016 15:50:38] Entrando no escopo...
[16/12/2016 15:50:38] Valor da storage: Tackle
[16/12/2016 15:50:38] Pokemon atacante: Venusaur
[16/12/2016 15:50:38] Pokemon defensor: Gengar
[16/12/2016 15:50:39] Entrando no escopo...
[16/12/2016 15:50:39] Valor da storage: Tackle
[16/12/2016 15:50:39] Pokemon atacante: Venusaur
[16/12/2016 15:50:39] Pokemon defensor: Gengar
[16/12/2016 15:50:39] Entrando no escopo...
[16/12/2016 15:50:39] Valor da storage: Tackle
[16/12/2016 15:50:39] Pokemon atacante: Venusaur
[16/12/2016 15:50:39] Pokemon defensor: Gengar
[16/12/2016 15:50:39] Entrando no escopo...
[16/12/2016 15:50:39] Valor da storage: Tackle
[16/12/2016 15:50:39] Pokemon atacante: Venusaur
[16/12/2016 15:50:39] Pokemon defensor: Gengar
[16/12/2016 15:50:40] Entrando no escopo...
[16/12/2016 15:50:40] Valor da storage: Tackle
[16/12/2016 15:50:40] Pokemon atacante: Venusaur
[16/12/2016 15:50:40] Pokemon defensor: Gengar
[16/12/2016 15:50:40] Entrando no escopo...
[16/12/2016 15:50:40] Valor da storage: Tackle
[16/12/2016 15:50:40] Pokemon atacante: Venusaur
[16/12/2016 15:50:40] Pokemon defensor: Gengar
[16/12/2016 15:50:40] Entrando no escopo...
[16/12/2016 15:50:40] Valor da storage: melee
[16/12/2016 15:50:40] Pokemon atacante: Venusaur
[16/12/2016 15:50:40] Pokemon defensor: Gengar
[16/12/2016 15:50:40] Entrando no escopo de MELEE...
[16/12/2016 15:50:40] Value antes de getEffectvineCombat: -65
[16/12/2016 15:50:40] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:40] Entrando no escopo...
[16/12/2016 15:50:40] Valor da storage: Tackle
[16/12/2016 15:50:40] Pokemon atacante: Venusaur
[16/12/2016 15:50:40] Pokemon defensor: Gengar
[16/12/2016 15:50:40] Entrando no escopo...
[16/12/2016 15:50:40] Valor da storage: Nightmare
[16/12/2016 15:50:40] Pokemon atacante: Gengar
[16/12/2016 15:50:40] Pokemon defensor: Venusaur
[16/12/2016 15:50:41] Entrando no escopo...
[16/12/2016 15:50:41] Valor da storage: Tackle
[16/12/2016 15:50:41] Pokemon atacante: Venusaur
[16/12/2016 15:50:41] Pokemon defensor: Gengar
[16/12/2016 15:50:41] Entrando no escopo...
[16/12/2016 15:50:41] Valor da storage: Tackle
[16/12/2016 15:50:41] Pokemon atacante: Venusaur
[16/12/2016 15:50:41] Pokemon defensor: Gengar
[16/12/2016 15:50:41] Entrando no escopo...
[16/12/2016 15:50:41] Valor da storage: Tackle
[16/12/2016 15:50:41] Pokemon atacante: Venusaur
[16/12/2016 15:50:41] Pokemon defensor: Gengar
[16/12/2016 15:50:42] Entrando no escopo...
[16/12/2016 15:50:42] Valor da storage: Tackle
[16/12/2016 15:50:42] Pokemon atacante: Venusaur
[16/12/2016 15:50:42] Pokemon defensor: Gengar
[16/12/2016 15:50:42] Entrando no escopo...
[16/12/2016 15:50:42] Valor da storage: Tackle
[16/12/2016 15:50:42] Pokemon atacante: Venusaur
[16/12/2016 15:50:42] Pokemon defensor: Gengar
[16/12/2016 15:50:42] Entrando no escopo...
[16/12/2016 15:50:42] Valor da storage: melee
[16/12/2016 15:50:42] Pokemon atacante: Venusaur
[16/12/2016 15:50:42] Pokemon defensor: Gengar
[16/12/2016 15:50:42] Entrando no escopo de MELEE...
[16/12/2016 15:50:42] Value antes de getEffectvineCombat: -91
[16/12/2016 15:50:42] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:42] Entrando no escopo...
[16/12/2016 15:50:42] Valor da storage: Tackle
[16/12/2016 15:50:42] Pokemon atacante: Venusaur
[16/12/2016 15:50:42] Pokemon defensor: Gengar
[16/12/2016 15:50:43] Entrando no escopo...
[16/12/2016 15:50:43] Valor da storage: Tackle
[16/12/2016 15:50:43] Pokemon atacante: Venusaur
[16/12/2016 15:50:43] Pokemon defensor: Gengar
[16/12/2016 15:50:43] Entrando no escopo...
[16/12/2016 15:50:43] Valor da storage: melee
[16/12/2016 15:50:43] Pokemon atacante: Gengar
[16/12/2016 15:50:43] Pokemon defensor: Venusaur
[16/12/2016 15:50:43] Entrando no escopo de MELEE...
[16/12/2016 15:50:43] Value antes de getEffectvineCombat: -92
[16/12/2016 15:50:43] Value depois de getEffectvineCombat: -92
[16/12/2016 15:50:43] Dano fica: -92
[16/12/2016 15:50:43] Entrando no escopo...
[16/12/2016 15:50:43] Valor da storage: Tackle
[16/12/2016 15:50:43] Pokemon atacante: Venusaur
[16/12/2016 15:50:43] Pokemon defensor: Gengar
[16/12/2016 15:50:43] Entrando no escopo...
[16/12/2016 15:50:43] Valor da storage: Tackle
[16/12/2016 15:50:43] Pokemon atacante: Venusaur
[16/12/2016 15:50:43] Pokemon defensor: Gengar
[16/12/2016 15:50:43] Entrando no escopo...
[16/12/2016 15:50:43] Valor da storage: Tackle
[16/12/2016 15:50:43] Pokemon atacante: Venusaur
[16/12/2016 15:50:43] Pokemon defensor: Gengar
[16/12/2016 15:50:44] Entrando no escopo...
[16/12/2016 15:50:44] Valor da storage: Night Shade
[16/12/2016 15:50:44] Pokemon atacante: Gengar
[16/12/2016 15:50:44] Pokemon defensor: Venusaur
[16/12/2016 15:50:44] Entrando no escopo...
[16/12/2016 15:50:44] Valor da storage: Tackle
[16/12/2016 15:50:44] Pokemon atacante: Venusaur
[16/12/2016 15:50:44] Pokemon defensor: Gengar
[16/12/2016 15:50:44] Entrando no escopo...
[16/12/2016 15:50:44] Valor da storage: Tackle
[16/12/2016 15:50:44] Pokemon atacante: Venusaur
[16/12/2016 15:50:44] Pokemon defensor: Gengar
[16/12/2016 15:50:44] Entrando no escopo...
[16/12/2016 15:50:44] Valor da storage: Tackle
[16/12/2016 15:50:44] Pokemon atacante: Venusaur
[16/12/2016 15:50:44] Pokemon defensor: Gengar
[16/12/2016 15:50:45] Entrando no escopo...
[16/12/2016 15:50:45] Valor da storage: Tackle
[16/12/2016 15:50:45] Pokemon atacante: Venusaur
[16/12/2016 15:50:45] Pokemon defensor: Gengar
[16/12/2016 15:50:45] Entrando no escopo...
[16/12/2016 15:50:45] Valor da storage: melee
[16/12/2016 15:50:45] Pokemon atacante: Gengar
[16/12/2016 15:50:45] Pokemon defensor: Venusaur
[16/12/2016 15:50:45] Entrando no escopo de MELEE...
[16/12/2016 15:50:45] Value antes de getEffectvineCombat: -94
[16/12/2016 15:50:45] Value depois de getEffectvineCombat: -94
[16/12/2016 15:50:45] Dano fica: -94
[16/12/2016 15:50:45] Entrando no escopo...
[16/12/2016 15:50:45] Valor da storage: Tackle
[16/12/2016 15:50:45] Pokemon atacante: Venusaur
[16/12/2016 15:50:45] Pokemon defensor: Gengar
[16/12/2016 15:50:45] Entrando no escopo...
[16/12/2016 15:50:45] Valor da storage: Tackle
[16/12/2016 15:50:45] Pokemon atacante: Venusaur
[16/12/2016 15:50:45] Pokemon defensor: Gengar
[16/12/2016 15:50:45] Entrando no escopo...
[16/12/2016 15:50:45] Valor da storage: melee
[16/12/2016 15:50:45] Pokemon atacante: Venusaur
[16/12/2016 15:50:45] Pokemon defensor: Gengar
[16/12/2016 15:50:45] Entrando no escopo de MELEE...
[16/12/2016 15:50:45] Value antes de getEffectvineCombat: -61
[16/12/2016 15:50:45] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:46] Entrando no escopo...
[16/12/2016 15:50:46] Valor da storage: Tackle
[16/12/2016 15:50:46] Pokemon atacante: Venusaur
[16/12/2016 15:50:46] Pokemon defensor: Gengar
[16/12/2016 15:50:46] Entrando no escopo...
[16/12/2016 15:50:46] Valor da storage: Tackle
[16/12/2016 15:50:46] Pokemon atacante: Venusaur
[16/12/2016 15:50:46] Pokemon defensor: Gengar
[16/12/2016 15:50:46] Entrando no escopo...
[16/12/2016 15:50:46] Valor da storage: Tackle
[16/12/2016 15:50:46] Pokemon atacante: Venusaur
[16/12/2016 15:50:46] Pokemon defensor: Gengar
[16/12/2016 15:50:46] Entrando no escopo...
[16/12/2016 15:50:46] Valor da storage: Hypnosis
[16/12/2016 15:50:46] Pokemon atacante: Gengar
[16/12/2016 15:50:47] Pokemon defensor: Venusaur
[16/12/2016 15:50:47] Entrando no escopo...
[16/12/2016 15:50:47] Valor da storage: Tackle
[16/12/2016 15:50:47] Pokemon atacante: Venusaur
[16/12/2016 15:50:47] Pokemon defensor: Gengar
[16/12/2016 15:50:47] Entrando no escopo...
[16/12/2016 15:50:47] Valor da storage: Tackle
[16/12/2016 15:50:47] Pokemon atacante: Venusaur
[16/12/2016 15:50:47] Pokemon defensor: Gengar
[16/12/2016 15:50:47] Entrando no escopo...
[16/12/2016 15:50:47] Valor da storage: melee
[16/12/2016 15:50:47] Pokemon atacante: Gengar
[16/12/2016 15:50:47] Pokemon defensor: Venusaur
[16/12/2016 15:50:47] Entrando no escopo de MELEE...
[16/12/2016 15:50:47] Value antes de getEffectvineCombat: -83
[16/12/2016 15:50:47] Value depois de getEffectvineCombat: -83
[16/12/2016 15:50:47] Dano fica: -83
[16/12/2016 15:50:47] Entrando no escopo...
[16/12/2016 15:50:47] Valor da storage: Tackle
[16/12/2016 15:50:47] Pokemon atacante: Venusaur
[16/12/2016 15:50:47] Pokemon defensor: Gengar
[16/12/2016 15:50:47] Entrando no escopo...
[16/12/2016 15:50:47] Valor da storage: Tackle
[16/12/2016 15:50:47] Pokemon atacante: Venusaur
[16/12/2016 15:50:47] Pokemon defensor: Gengar
[16/12/2016 15:50:48] Entrando no escopo...
[16/12/2016 15:50:48] Valor da storage: melee
[16/12/2016 15:50:48] Pokemon atacante: Venusaur
[16/12/2016 15:50:48] Pokemon defensor: Gengar
[16/12/2016 15:50:48] Entrando no escopo de MELEE...
[16/12/2016 15:50:48] Value antes de getEffectvineCombat: -86
[16/12/2016 15:50:48] Value depois de getEffectvineCombat: 0
[16/12/2016 15:50:48] Entrando no escopo...
[16/12/2016 15:50:48] Valor da storage: Tackle
[16/12/2016 15:50:48] Pokemon atacante: Venusaur
[16/12/2016 15:50:48] Pokemon defensor: Gengar

 

 

codigos:

Spoiler

elseif spell == "Tackle" then

   doDanoWithProtect(cid, NORMALDAMAGE, getThingPosWithDebug(target), 0, -min, -max, 111)

elseif spell == "Super Fang" then

	doDanoWithProtect(cid, NORMALDAMAGE, getThingPosWithDebug(target), 0, -min, -max, 244)

 

edit: @zipter98 enquanto o miracle eye, umas veces funfa outras nao maiormente o dano é 0 e quando funfa 1200~

Spoiler

[16/12/2016 16:51:41] Entrando no escopo...
[16/12/2016 16:51:41] Valor da storage: melee
[16/12/2016 16:51:41] Pokemon atacante: Shiny Umbreon
[16/12/2016 16:51:41] Pokemon defensor: Shiny Hypno
[16/12/2016 16:51:41] Entrando no escopo de MELEE...
[16/12/2016 16:51:41] Value antes de getEffectvineCombat: -98
[16/12/2016 16:51:41] Value depois de getEffectvineCombat: -127.4
[16/12/2016 16:51:41] Dano fica: -509.6
[16/12/2016 16:51:42] Entrando no escopo...
[16/12/2016 16:51:42] Valor da storage: Confusion
[16/12/2016 16:51:42] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:42] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:43] Entrando no escopo...
[16/12/2016 16:51:43] Valor da storage: melee
[16/12/2016 16:51:43] Pokemon atacante: Shiny Umbreon
[16/12/2016 16:51:43] Pokemon defensor: Shiny Hypno
[16/12/2016 16:51:43] Entrando no escopo de MELEE...
[16/12/2016 16:51:43] Value antes de getEffectvineCombat: -106
[16/12/2016 16:51:43] Value depois de getEffectvineCombat: -137.8
[16/12/2016 16:51:43] Dano fica: -551.2
[16/12/2016 16:51:43] Entrando no escopo...
[16/12/2016 16:51:43] Valor da storage: Confusion
[16/12/2016 16:51:43] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:43] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:43] Entrando no escopo...
[16/12/2016 16:51:43] Valor da storage: melee
[16/12/2016 16:51:43] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:43] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:43] Entrando no escopo de MELEE...
[16/12/2016 16:51:43] Value antes de getEffectvineCombat: -58
[16/12/2016 16:51:43] Value depois de getEffectvineCombat: -58
[16/12/2016 16:51:43] Dano fica: -116
[16/12/2016 16:51:43] Entrando no escopo...
[16/12/2016 16:51:43] Valor da storage: Confusion
[16/12/2016 16:51:43] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:43] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:43] Entrando no escopo...
[16/12/2016 16:51:43] Valor da storage: Confusion
[16/12/2016 16:51:43] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:43] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:44] Entrando no escopo...
[16/12/2016 16:51:44] Valor da storage: Confusion
[16/12/2016 16:51:44] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:44] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:44] Entrando no escopo...
[16/12/2016 16:51:44] Valor da storage: Confusion
[16/12/2016 16:51:44] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:44] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:44] Entrando no escopo...
[16/12/2016 16:51:44] Valor da storage: Confusion
[16/12/2016 16:51:44] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:44] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:45] Entrando no escopo...
[16/12/2016 16:51:45] Valor da storage: melee
[16/12/2016 16:51:45] Pokemon atacante: Shiny Umbreon
[16/12/2016 16:51:45] Pokemon defensor: Shiny Hypno
[16/12/2016 16:51:45] Entrando no escopo de MELEE...
[16/12/2016 16:51:45] Value antes de getEffectvineCombat: -103
[16/12/2016 16:51:45] Value depois de getEffectvineCombat: -133.9
[16/12/2016 16:51:45] Dano fica: -535.6
[16/12/2016 16:51:45] Entrando no escopo...
[16/12/2016 16:51:45] Valor da storage: Confusion
[16/12/2016 16:51:45] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:45] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:45] Entrando no escopo...
[16/12/2016 16:51:45] Valor da storage: melee
[16/12/2016 16:51:45] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:45] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:45] Entrando no escopo de MELEE...
[16/12/2016 16:51:45] Value antes de getEffectvineCombat: -89
[16/12/2016 16:51:45] Value depois de getEffectvineCombat: -89
[16/12/2016 16:51:45] Dano fica: -178
[16/12/2016 16:51:45] Entrando no escopo...
[16/12/2016 16:51:45] Valor da storage: Confusion
[16/12/2016 16:51:45] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:45] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:45] Entrando no escopo...
[16/12/2016 16:51:45] Valor da storage: Confusion
[16/12/2016 16:51:45] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:45] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:46] Entrando no escopo...
[16/12/2016 16:51:46] Valor da storage: Confusion
[16/12/2016 16:51:46] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:46] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:46] Entrando no escopo...
[16/12/2016 16:51:46] Valor da storage: Confusion
[16/12/2016 16:51:46] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:46] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:46] Entrando no escopo...
[16/12/2016 16:51:46] Valor da storage: Confusion
[16/12/2016 16:51:46] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:46] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:47] Entrando no escopo...
[16/12/2016 16:51:47] Valor da storage: Confusion
[16/12/2016 16:51:47] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:47] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:47] Entrando no escopo...
[16/12/2016 16:51:47] Valor da storage: melee
[16/12/2016 16:51:47] Pokemon atacante: Shiny Umbreon
[16/12/2016 16:51:47] Pokemon defensor: Shiny Hypno
[16/12/2016 16:51:47] Entrando no escopo de MELEE...
[16/12/2016 16:51:47] Value antes de getEffectvineCombat: -103
[16/12/2016 16:51:47] Value depois de getEffectvineCombat: -133.9
[16/12/2016 16:51:47] Dano fica: -535.6
[16/12/2016 16:51:47] Entrando no escopo...
[16/12/2016 16:51:47] Valor da storage: Confusion
[16/12/2016 16:51:47] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:47] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:47] Entrando no escopo...
[16/12/2016 16:51:47] Valor da storage: Confusion
[16/12/2016 16:51:47] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:48] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:49] Entrando no escopo...
[16/12/2016 16:51:49] Valor da storage: Miracle Eye
[16/12/2016 16:51:49] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:49] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:49] Entrando no escopo...
[16/12/2016 16:51:49] Valor da storage: Confusion
[16/12/2016 16:51:49] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:49] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:49] Entrando no escopo...
[16/12/2016 16:51:49] Valor da storage: melee
[16/12/2016 16:51:49] Pokemon atacante: Shiny Umbreon
[16/12/2016 16:51:49] Pokemon defensor: Shiny Hypno
[16/12/2016 16:51:49] Entrando no escopo de MELEE...
[16/12/2016 16:51:49] Value antes de getEffectvineCombat: -106
[16/12/2016 16:51:49] Value depois de getEffectvineCombat: -137.8
[16/12/2016 16:51:49] Dano fica: -551.2
[16/12/2016 16:51:50] Entrando no escopo...
[16/12/2016 16:51:50] Valor da storage: Confusion
[16/12/2016 16:51:50] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:50] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:51] Entrando no escopo...
[16/12/2016 16:51:51] Valor da storage: Miracle Eye
[16/12/2016 16:51:51] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:51] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:51] Entrando no escopo...
[16/12/2016 16:51:51] Valor da storage: melee
[16/12/2016 16:51:51] Pokemon atacante: Shiny Umbreon
[16/12/2016 16:51:51] Pokemon defensor: Shiny Hypno
[16/12/2016 16:51:51] Entrando no escopo de MELEE...
[16/12/2016 16:51:51] Value antes de getEffectvineCombat: -98
[16/12/2016 16:51:51] Value depois de getEffectvineCombat: -127.4
[16/12/2016 16:51:51] Dano fica: -509.6
[16/12/2016 16:51:51] Entrando no escopo...
[16/12/2016 16:51:51] Valor da storage: Confusion
[16/12/2016 16:51:51] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:51] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:52] Entrando no escopo...
[16/12/2016 16:51:52] Valor da storage: Confusion
[16/12/2016 16:51:52] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:52] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:53] Entrando no escopo...
[16/12/2016 16:51:53] Valor da storage: melee
[16/12/2016 16:51:53] Pokemon atacante: Shiny Umbreon
[16/12/2016 16:51:53] Pokemon defensor: Shiny Hypno
[16/12/2016 16:51:53] Entrando no escopo de MELEE...
[16/12/2016 16:51:53] Value antes de getEffectvineCombat: -88
[16/12/2016 16:51:53] Value depois de getEffectvineCombat: -114.4
[16/12/2016 16:51:54] Dano fica: -457.6
[16/12/2016 16:51:55] Entrando no escopo...
[16/12/2016 16:51:55] Valor da storage: melee
[16/12/2016 16:51:55] Pokemon atacante: Shiny Hypno
[16/12/2016 16:51:55] Pokemon defensor: Shiny Umbreon
[16/12/2016 16:51:55] Entrando no escopo de MELEE...
[16/12/2016 16:51:55] Value antes de getEffectvineCombat: -67
[16/12/2016 16:51:55] Value depois de getEffectvineCombat: -67
[16/12/2016 16:51:55] Dano fica: -134

 

 

Editado por Josegvb
Link para o comentário
Compartilhar em outros sites

OK. Primeiramente, testou o Miracle Eye e o melee em tipo fantasmas?

Todas as spells que apresentam erro tem alguma relação com addEvent - ou seja, são executadas num momento posterior ao que foram conjuradas.

Nas storms, Psyshock, Shockwave e Psy Pulse isso é mais óbvio. Entretanto, em spells como Fury Swipes, Nightmare e Shadow Punch, apenas lendo o código você irá reparar nisso.

Nessas duas primeiras, há uma função em comum:

doDanoWithProtectWithDelay

Ao ler o código desta função, você irá perceber que há um addEvent também. 

 

É possível padronizar uma correção aplicando-a diretamente no código da função (há várias funções de dano escritas em Lua, encontradas na lib). Porém, há sempre exceções: funções escritas em C++ e funções que não tem a spell como argumento.

 

No primeiro caso, há sim formas de simplificar a correção. No entanto, C++ não é muito minha praia e, além do mais, as spells que as usam dentro de um addEvent são pouquíssimas (como o Psyshock e o Shockwave; basta um CTRL + F para conferir). Em uns 10 minutos (no máximo), já seria possível aplicar a correção. Basicamente, acima do:

doAreaCombatHealth(...)

você colocaria:

if tostring(getPlayerStorageValue(cid, 21102)) ~= spell then    setPlayerStorageValue(cid, 21102, spell)end

 

No caso das funções em Lua, há funções como doMoveInArea2 doMoveDano2 que tem como um dos argumentos o nome da spell. Por causa disso, é possível colocar a proteção acima diretamente no código da função. Nas spells que usam estas funções, há o perigo do elemento ser substituído enquanto são executadas, por isso peço-lhe que poste o código de ambas as funções para que a proteção seja colocada.

Entretanto, em funções como doDanoWithProtect doDanoInTargetWithDelay, não temos este luxo. Seria até possível fazer algumas gambiarras usando o combat, mas isso atrapalharia situações como do Reflect. 

Então, sem a correção adequada na própria source do servidor (já que apresentar sempre o mesmo tipo de combat é um problema na fonte), resta apenas o trabalho braçal.

 

Leve em consideração que jogadores normais NÃO têm a liberdade de usar spells sem cooldown algum, como você fez nos testes. Caso, em condições normais de gameplay, não houverem problemas como estes, não vejo muito porque se preocupar.

Editado por zipter98
Link para o comentário
Compartilhar em outros sites

entao @zipter98 coloquei encima das 68  linhas do pokemon moves

doAreaCombatHealth(...)

aquele codigo q vc disse

 

paresce q arrumou td

enquanto oque voce disse do spam de cd, sim sei q jogador nao pode fazer isso mais apenas tava com duvida se o bug era originado por SPAM OU porque a spell era castado NO SEGUNDO EXAITO q outro spell ou melee ia acontecer...

 

ok entao enquanto as funçoes na libs

Spoiler

conds = {
["Slow"] = 3890,
["Confusion"] = 3891,  
["Burn"] = 3892,
["Poison"] = 3893,
["Fear"] = 3894,
["Stun"] = 3895,
["Paralyze"] = 3896,                               --alterado v1.6 \/ peguem o script todo!
["Leech"] = 3897,
["Buff1"] = 3898,
["Buff2"] = 3899,
["Buff3"] = 3900,
["Miss"] = 32659,   
["Silence"] = 32698,     
["Sleep"] = 98271,
}

injuries2 = {
[1] = {n = "slow", m = 3890},
[2] = {n = "confuse", m = 3891},  
[3] = {n = "burn", m = 3892},
[4] = {n = "poison", m = 3893},
[5] = {n = "fear", m = 3894},
[6] = {n = "stun", m = 3895},
[7] = {n = "paralyze", m = 3896},
[8] = {n = "leech", m = 3897},
[9] = {n = "Buff1", m = 3898},
[10] = {n = "Buff2", m = 3899},
[11] = {n = "Buff3", m = 3900},
[12] = {n = "miss", m = 32659},   
[13] = {n = "silence", m = 32698},     
[14] = {n = "sleep", m = 98271},
}

Buffs = {
[1] = {"Buff1", 3898},
[2] = {"Buff2", 3899},
[3] = {"Buff3", 3900},
}

paralizeArea2 = createConditionObject(CONDITION_PARALYZE)
setConditionParam(paralizeArea2, CONDITION_PARAM_TICKS, 50000)
setConditionFormula(paralizeArea2, -0.63, -0.63, -0.63, -0.63)

local roardirections = {
[NORTH] = {SOUTH},
[SOUTH] = {NORTH},
[WEST] = {EAST},           --edited sistema de roar
[EAST] = {WEST}}

function doSendSleepEffect(cid)
	if not isCreature(cid) or not isSleeping(cid) then return true end
	doSendMagicEffect(getThingPos(cid), 32)
	addEvent(doSendSleepEffect, 1500, cid)
end

local outFurys = {
["Shiny Charizard"] = {outFury = 1073}, 
["Elder Charizard"] = {outFury = 1073},  
["Shiny Blastoise"] = {outFury = 1074},   
["Ancient Blastoise"] = {outFury = 1074}, 
["Ditto"] = {outFury = null},   
}

local outImune  = {
["Camouflage"] = {[643] = 1445,[43] = 2087,},
["Acid Armor"] = {[398] = 1453,[1283] = 1453,},
["Iron Defense"] = {[911] = 1401,[1763] = 1825,[1762] = 1828,[163] = 136,},
["Minimize"] = {[397] = 1455,},
["Future Sight"] = {[36] = 1446,[530] = 52,[110] = 111,},
["Psychic Sight"] = {[365] = 1536,},
["Heal Bell"] = {[365] = 946,},
}
            --XD
local function transBack(cid)
if isCreature(cid) then
   if getPlayerStorageValue(cid, 974848) >= 1 then
      setPlayerStorageValue(cid, 974848, 0)
      doRemoveCondition(cid, CONDITION_OUTFIT)
   end
end
end

function doCondition2(ret)
--
function doMiss2(cid, cd, eff, check, spell)
local stg = conds["Miss"]
    if not isCreature(cid) then return true end  --is creature?
local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
    if getPlayerStorageValue(cid, 21100) >= 1 and getPlayerStorageValue(cid, stg) <= -1 then return true end --alterado v1.6  reflect
    if not canDoMiss(cid, spell) then return true end
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
	setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end 
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "miss", a)
       doItemSetAttribute(item.uid, "missEff", eff)
       doItemSetAttribute(item.uid, "missSpell", spell)
    end
	
    if a <= -1 then 
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
        
    doSendMagicEffect(getThingPos(cid), eff)
    addEvent(doMiss2, 1000, cid, -1, eff, a, spell)   
end 

function doSilence2(cid, cd, eff, check)
local stg = conds["Silence"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "silence", a)
       doItemSetAttribute(item.uid, "silenceEff", eff)
    end
	
    if a <= -1 then 
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
        
    doSendMagicEffect(getThingPos(cid), eff)
    addEvent(doSilence2, 1000, cid, -1, eff, a)   
end       

function doSlow2(cid, cd, eff, check, first)
local stg = conds["Slow"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
     if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "slow", a)
       doItemSetAttribute(item.uid, "slowEff", eff)
    end
	
    if a <= -1 then 
    doRemoveCondition(cid, CONDITION_PARALYZE)
    if not isSleeping(cid) and not isParalyze(cid) then
       addEvent(doRegainSpeed, 50, cid)     --alterado
    end
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
    
    if first then
       doAddCondition(cid, paralizeArea2) 
    end  
      
    doSendMagicEffect(getThingPos(cid), eff)
    addEvent(doSlow2, 1000, cid, -1, eff, a)   
end    

function doConfusion2(cid, cd, check)
local stg = conds["Confusion"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "confuse", a)
    end
	
    if a <= -1 then 
    if getCreatureCondition(cid, CONDITION_PARALYZE) == true then         
    end
    if not isSleeping(cid) and not isParalyze(cid) then
    end
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
    
    if math.random(1, 6) >= 4 then
		doSendMagicEffect(getThingPos(cid), 31)
	end

    local isTarget = isSummon(cid) and getCreatureTarget(getCreatureMaster(cid)) or getCreatureTarget(cid)
    if isCreature(isTarget) and not isSleeping(cid) and not isParalyze(cid) and getPlayerStorageValue(cid, 654878) <= 0 then --alterado v1.6
		doAddCondition(cid, confusioncondition)
	end

	local pos = getThingPos(cid)
	addEvent(doSendMagicEffect, math.random(0, 450), pos, 31)
 
    addEvent(doConfusion2, 1000, cid, -1, a)   
end           

function doBurn2(cid, cd, check, damage)
local stg = conds["Burn"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
   if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "burn", a)
       doItemSetAttribute(item.uid, "burndmg", damage)
    end
	
    if a <= -1 then 
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
		local dano = getCreatureHealth(cid)-damage <= 0 and getCreatureHealth(cid)-1 or damage 
		if isSummon(ret.attacker) then -- morrer para veneno
		   local player = getCreatureMaster(ret.attacker)
		   addPlayerDano(ret.im, player, dano)
	    end
    
    doCreatureAddHealth(cid, -dano, ret.eff, ret.color and ret.color or COLOR_BURN)  
    addEvent(doBurn2, 1500, cid, -1, a, damage)   
end 

function doPoison2(cid, cd, check, damage)
local stg = conds["Poison"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
    ----------
    if isSummon(cid) or ehMonstro(cid) and pokes[getCreatureName(cid)] then --alterado v1.6
       local type = pokes[getCreatureName(cid)].type
       local type2 = pokes[getCreatureName(cid)].type2
       if isInArray({"poison", "steel"}, type) or isInArray({"poison", "steel"}, type2) then
          return true
       end
    end
    ---------
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "poison", a)
       doItemSetAttribute(item.uid, "poisondmg", damage)
    end
	
    if a <= -1 or getCreatureHealth(cid) == 1 then 
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
   
	   
   
    local dano = getCreatureHealth(cid)-damage <= 0 and getCreatureHealth(cid)-1 or damage 
		if isSummon(ret.attacker) then -- morrer para veneno
		  local player = getCreatureMaster(ret.attacker)
		  addPlayerDano(ret.im, player, dano)
	    end
    doCreatureAddHealth(cid, -dano, 8, COLOR_GRASS) 
    
    addEvent(doPoison2, 1500, cid, -1, a, damage)   
end       

function doFear2(cid, cd, check, skill)
local stg = conds["Fear"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "fear", a)
       doItemSetAttribute(item.uid, "fearSkill", skill)
    end
	
    if a <= -1 then 
    if getCreatureCondition(cid, CONDITION_PARALYZE) == true then
       doRemoveCondition(cid, CONDITION_PARALYZE)
	   addEvent(doAddCondition, 10, cid, paralizeArea2)            
    end
    if not isSleeping(cid) and not isParalyze(cid) then
       doRegainSpeed(cid)         --alterado 
    end
    setPlayerStorageValue(cid, stg, -1)
	setCreatureTargetDistance(cid, getCreatureDefaultTargetDistance(cid))
    return true 
    end
    
    if skill == "Roar" then
       eff = 244
    else                --edited Roar
       eff = 139
    end
    
    if math.random(1, 6) >= 4 then
		doSendMagicEffect(getThingPos(cid), eff)
	end

    local isTarget = isSummon(cid) and getCreatureTarget(getCreatureMaster(cid)) or getCreatureTarget(cid)
    if isCreature(isTarget) and not isSleeping(cid) and not isParalyze(cid) and getPlayerStorageValue(cid, 654878) <= 0 then --alterado v1.6
		local dir = getCreatureDirectionToTarget(cid, isTarget)
        setCreatureTargetDistance(cid, 6)
	end

	local pos = getThingPos(cid)
	addEvent(doSendMagicEffect, math.random(0, 450), pos, eff)
 
    addEvent(doFear2, 400, cid, -1, a, skill)   
end      

function doStun2(cid, cd, eff, check, spell)
local stg = conds["Stun"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
    if not canDoMiss(cid, spell) then return true end
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "stun", a)
       doItemSetAttribute(item.uid, "stunEff", eff)
       doItemSetAttribute(item.uid, "stunSpell", spell)
    end
	
    if a <= -1 then
    doRemoveCondition(cid, CONDITION_PARALYZE)
    if not isSleeping(cid) and not isParalyze(cid) then
       addEvent(doRegainSpeed, 50, cid)   --alterado 
    end
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
    
    if getCreatureCondition(cid, CONDITION_PARALYZE) == false then
       doAddCondition(cid, paralizeArea2)
    end    
    doSendMagicEffect(getThingPos(cid), eff)
    addEvent(doStun2, 1000, cid, -1, eff, a, spell)   
end 

function doParalyze2(cid, cd, eff, check, first)
local stg = conds["Paralyze"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "paralyze", a)
       doItemSetAttribute(item.uid, "paralyzeEff", eff)
    end
	
    if a <= -1 then 
    if isPlayer(cid) then
       if not isSleeping(cid) then   --alterado
          mayNotMove(cid, false)
       end
    else
       if getCreatureCondition(cid, CONDITION_PARALYZE) == true then
          doRemoveCondition(cid, CONDITION_PARALYZE)
          addEvent(doAddCondition, 10, cid, paralizeArea2)            
       end
       if not isSleeping(cid) then
          doRegainSpeed(cid)          --alterado
       end
    end   
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
    
    if isPlayer(cid) then
       mayNotMove(cid, true)
    else                        --alterado v1.6
       doChangeSpeed(cid, -2000)
    end 
    doSendMagicEffect(getThingPos(cid), eff)
    addEvent(doParalyze2, 1000, cid, -1, eff, a, false)   
end       

function doSleep2(cid, cd, check, first)        
local stg = conds["Sleep"]
    if not isCreature(cid) then return true end  --is creature?
local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  	
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not isSleeping(cid) then
		addEvent(doSendSleepEffect, 500, cid)
	end
	
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
          
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "sleep", a)
    end
	
    if a <= -1 then 
    if isPlayer(cid) then
       if not isParalyze(cid) then
          mayNotMove(cid, false)   --alterado
       end
    else
       if getCreatureCondition(cid, CONDITION_PARALYZE) == true then
          doRemoveCondition(cid, CONDITION_PARALYZE)
          addEvent(doAddCondition, 10, cid, paralizeArea2)            
       end
       if not isParalyze(cid) then
          doRegainSpeed(cid)   --alterado
       end
	end
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
    
    if first then 
       if getCreatureName(cid) == "Ursaring" and getCreatureCondition(cid, CONDITION_OUTFIT) == true then
             
       elseif not isPlayer(cid) then
          if isInArray({604, 605, 1015, 1016, 1183, 1184}, getCreatureOutfit(cid).lookType) then
             Info = 0                                                                            --alterado v1.6
          else
             Info = getMonsterInfo(getCreatureName(cid)).lookCorpse                
          end                
          local look = getCreatureOutfit(cid) 
          ---------
          local dittoStg = getPlayerStorageValue(cid, 1010) 
          if getCreatureName(cid) == "Ditto" and isSummon(cid) and tostring(dittoStg) and dittoStg ~= "Ditto" then
	         local InfoDitto = getMonsterInfo(tostring(dittoStg)).lookCorpse
             if InfoDitto ~= 0 and look.lookType ~= 0 then             
                --doSetCreatureOutfit(cid, {lookType = 0, lookTypeEx = getMonsterInfo(tostring(dittoStg)).lookCorpse}, -1)
             end   
          else
             if getCreatureName(cid) == "Shiny Golem" and getCreatureOutfit(cid).lookType == 1403 then
                doRemoveCondition(cid, CONDITION_OUTFIT)                                                                                                  
             elseif Info ~= 0 and look.lookType ~= 0 then
			    --doSetCreatureOutfit(cid, {lookType = 0, lookTypeEx = getMonsterInfo(getCreatureName(cid)).lookCorpse}, -1)
             end
          end
       end
    end
                                      --alterado v1.6
    if isPlayer(cid) then
       mayNotMove(cid, true)
    else
       doChangeSpeed(cid, -getCreatureSpeed(cid))
    end
    addEvent(doSleep2, 1000, cid, -1, a, false)
end   

function doLeech2(cid, attacker, cd, check, damage)
local stg = conds["Leech"]
    if not isCreature(cid) then return true end  --is creature?
	local nostuneable = {"Ho-Oh", "Lugia", "Mew", "Mewtwo", "Suicune", "Raikou", "Entei", "Moltres", "Zapdos", "Articuno", "Celebi"}
	if isInArray(nostuneable, getCreatureName(cid)) and not isSummon(cid) then return true end  
    if attacker ~= 0 and not isCreature(attacker) then return true end  --is creature?
    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then 
       setPlayerStorageValue(cid, stg, cd)    --allterado v1.8
       return true 
    end
    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, "leech", a)
       doItemSetAttribute(item.uid, "leechdmg", damage)
    end
	
    if a <= -1 then 
    setPlayerStorageValue(cid, stg, -1)
    return true 
    end
    
    local life = getCreatureHealth(cid)
	--damage = getCreatureHealth(cid) - damage <= 0 and getCreatureHealth(cid) - 1 or damage 
	
	if damage >= life then
		if isSummon(cid) then
			if isInDuel(getCreatureMaster(cid)) then
			   doRemoveCountPokemon(getCreatureMaster(cid))
	        end
		end
		doSendAnimatedText(getThingPos(cid), "-"..damage.."", 144)
		doSendAnimatedText(getThingPos(attacker), "+"..damage.."", 32)
		doKillWildPoke(attacker, cid)
		return false
	end
    ------
    doCreatureAddHealth(cid, -damage)
    doSendAnimatedText(getThingPos(cid), "-"..damage.."", 144)
    doSendMagicEffect(getThingPos(cid), 45)
    ------
    local newlife = life - getCreatureHealth(cid)
    if newlife >= 1 and attacker ~= 0 then
       doSendMagicEffect(getThingPos(attacker), 14)
       doCreatureAddHealth(attacker, newlife)
       doSendAnimatedText(getThingPos(attacker), "+"..newlife.."", 32)
	   local dano = getCreatureHealth(cid)-damage <= 0 and getCreatureHealth(cid)-1 or damage 
		if isSummon(attacker) then -- morrer para veneno
		  local player = getCreatureMaster(attacker)
		  addPlayerDano(cid, player, dano)
	    end
    end 
    addEvent(doLeech2, 2000, cid, attacker, -1, a, damage)   
end 

function doBuff2(cid, cd, eff, check, buff, first, attr)
    if not isCreature(cid) then return true end  --is creature?
---------------------
local atributo = attr and attr or ""
if first and atributo == "" then
for i = 1, 3 do 
    if getPlayerStorageValue(cid, Buffs[i][2]) <= 0 then
       atributo = Buffs[i][1]
       break
    end
end
end
if atributo == "" then return true end
if ehMonstro(cid) then atributo = "Buff1" end
----------------------
local stg = conds[atributo]

    if getPlayerStorageValue(cid, stg) >= 1 and cd ~= -1 then return true end  --n usar 2x

    if not check and getPlayerStorageValue(cid, stg) >= 1 then
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd - 1)
    else
       setPlayerStorageValue(cid, stg, getPlayerStorageValue(cid, stg) + cd)
    end
           
    local a = getPlayerStorageValue(cid, stg)
           
    if isSummon(cid) and getPlayerStorageValue(cid, 212123) <= 0 then
       local item = getPlayerSlotItem(getCreatureMaster(cid), 8)
       doItemSetAttribute(item.uid, atributo, a)
       doItemSetAttribute(item.uid, atributo.."eff", eff)
       doItemSetAttribute(item.uid, atributo.."skill", buff)
    end
	
    if a <= -1 then               --alterado v1.6
    if isInArray({"Psychic Sight", "Heal Bell", "Future Sight", "Camouflage", "Acid Armor", "Iron Defense", "Minimize", "Bug Fighter", "Ancient Fury"}, buff) then
       if not isSleeping(cid) then
          doRemoveCondition(cid, CONDITION_OUTFIT)
       end
       setPlayerStorageValue(cid, 9658783, -1)
       setPlayerStorageValue(cid, 625877, -1) --alterado v1.6 
    end 
    if isInArray({"Eruption", "Elecball", "Strafe", "Agility", "Ancient Fury", "War Dog", "Fighter Spirit", "Furious Legs", "Ultimate Champion", "Bug Fighter"}, buff) then
       setPlayerStorageValue(cid, 374896, -1)   --alterado v1.6
    end                                        
    setPlayerStorageValue(cid, stg, -1)      
    return true 
    end
     
    doSendMagicEffect(getThingPos(cid), eff)
        
    if first then
    if buff == "Strafe" or buff == "Agility" then
       setPlayerStorageValue(cid, 374896, 1) --velo atk --alterado v1.6
       doRaiseStatus(cid, 0, 0, 400, a)
    elseif buff == "Eruption" or buff == "Elecball" then
       setPlayerStorageValue(cid, 374896, 1) --velo atk --alterado v1.6
       doRaiseStatus(cid, 2, 0, 150, a)
    elseif buff == "Tailwind" then
       doRaiseStatus(cid, 0, 0, 200, a)
    elseif buff == "Rage" then
       doRaiseStatus(cid, 2, 0, 0, a)
    elseif buff == "Harden" then
       doRaiseStatus(cid, 0, 2, 0, a)
    elseif buff == "Calm Mind" then
       doRaiseStatus(cid, 0, 2, 0, a)
    elseif buff == "Ancient Fury" then
       doSetCreatureOutfit(cid, {lookType = outFurys[doCorrectString(getCreatureName(cid))].outFury}, a*1000)
       setPlayerStorageValue(cid, 374896, 1)  --velo atk
       if getCreatureName(cid) == "Shiny Charizard" or getCreatureName(cid) == "Elder Charizard" then 
          doRaiseStatus(cid, 2, 0, 0, a)    --atk melee     --alterado v1.6
       else
          doRaiseStatus(cid, 0, 2, 0, a)    --def
       end   
       setPlayerStorageValue(cid, 625877, outFurys[doCorrectString(getCreatureName(cid))].outFury)     --alterado v1.6
    elseif buff == "War Dog" or buff == "Bulk Up" or buff == "Outrage" then
       doRaiseStatus(cid, 1.5, 1.5, 0, a)
       setPlayerStorageValue(cid, 374896, 1)  --velo atk
    elseif buff == "Rest" then
       doSleep2(cid, cd, getPlayerStorageValue(cid, conds["Sleep"]), true) 
       doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
    elseif isInArray({"Fighter Spirit", "Furious Legs", "Ultimate Champion"}, buff) then
       doRaiseStatus(cid, 1.5, 0, 0, a)    --atk melee    --alterado v1.6
       setPlayerStorageValue(cid, 374896, 1)  --velo atk 
       addEvent(setPlayerStorageValue, a*1000, cid, 465987, -1)                                              
elseif isInArray({"Psychic Sight", "Heal Bell", "Future Sight", "Camouflage", "Acid Armor", "Iron Defense", "Minimize"}, buff) then
	   doSetCreatureOutfit(cid, {lookType = outImune[buff][getCreatureOutfit(cid).lookType]}, -1)
       setPlayerStorageValue(cid, 9658783, 1)  
       setPlayerStorageValue(cid, 625877, outImune[buff]) --alterado v1.6                             
    elseif buff == "Bug Fighter" then
       setPlayerStorageValue(cid, 374896, 1)  --velo atk  --alterado v1.6
       doRaiseStatus(cid, 1.5, 1.5, 100, a)
       doSetCreatureOutfit(cid, {lookType = 1448}, a*1000)
       setPlayerStorageValue(cid, 625877, 1448)  --alterado v1.6
    end                                                                            
    end 
    addEvent(doBuff2, 1000, cid, -1, eff, a, buff, false, atributo)   
end
 
if ret.buff and ret.buff ~= "" then
   doBuff2(ret.id, ret.cd, ret.eff, ret.check, ret.buff, ret.first, (ret.attr and ret.attr or false))
end
--if string.find(getCreatureName(ret.id):lower(), "shiny") and isWild(ret.id) or isMega(ret.id) or isWildTrainerPokemon(ret.id) then
--	return true
--end

if isGod(ret.id) then
   return true
end

if isSummon(ret.id) and getPokemonBoost(ret.id) ~= 0 and math.random(1, 100) <= getPokemonBoost(ret.id) then   --sistema "pegou no boost"
   if ret.cond and not isInArray({"Poison", "Leech", "Fear"}, ret.cond) then 
      doSendMagicEffect(getThingPosWithDebug(ret.id), 114)
	  doSendAnimatedText(getThingPosWithDebug(ret.id), "BOOST", 215)   --alterado v1.8     
      return true
   end
end

if type(ret.cond) == "table" then
        for i = 1, #ret.cond do
            if ret.cond[i] and ret.cond[i] == "Miss" then
                doMiss2(ret.id, ret.cd, ret.eff, ret.check, ret.spell)
            elseif ret.cond[i] and ret.cond[i] == "Silence" then
                doSilence2(ret.id, ret.cd, ret.eff, ret.check)
            elseif ret.cond[i] and ret.cond[i] == "Slow" then
                doSlow2(ret.id, ret.cd, ret.eff, ret.check, ret.first)
            elseif ret.cond[i] and ret.cond[i] == "Confusion" then
                doConfusion2(ret.id, ret.cd, ret.check)
            elseif ret.cond[i] and ret.cond[i] == "Burn" then
                doBurn2(ret.id, ret.cd, ret.check, ret.damage)
            elseif ret.cond[i] and ret.cond[i] == "Poison" then
                doPoison2(ret.id, ret.cd, ret.check, ret.damage)
            elseif ret.cond[i] and ret.cond[i] == "Fear" then
                doFear2(ret.id, ret.cd, ret.check, ret.skill)
            elseif ret.cond[i] and ret.cond[i] == "Stun" then
                doStun2(ret.id, ret.cd, ret.eff, ret.check, ret.spell)
            elseif ret.cond[i] and ret.cond[i] == "Paralyze" then
                doParalyze2(ret.id, ret.cd, ret.eff, ret.check, ret.first)
            elseif ret.cond[i] and ret.cond[i] == "Sleep" then
                doSleep2(ret.id, ret.cd, ret.check, ret.first)
            elseif ret.cond[i] and ret.cond[i] == "Leech" then
                doLeech2(ret.id, ret.attacker, ret.cd, ret.check, ret.damage)
            end
        end
    else
        if ret.cond and ret.cond == "Miss" then
            doMiss2(ret.id, ret.cd, ret.eff, ret.check, ret.spell)
        elseif ret.cond and ret.cond == "Silence" then
            doSilence2(ret.id, ret.cd, ret.eff, ret.check)
        elseif ret.cond and ret.cond == "Slow" then
            doSlow2(ret.id, ret.cd, ret.eff, ret.check, ret.first)
        elseif ret.cond and ret.cond == "Confusion" then
            doConfusion2(ret.id, ret.cd, ret.check)
        elseif ret.cond and ret.cond == "Burn" then
            doBurn2(ret.id, ret.cd, ret.check, ret.damage)
        elseif ret.cond and ret.cond == "Poison" then
            doPoison2(ret.id, ret.cd, ret.check, ret.damage)
        elseif ret.cond and ret.cond == "Fear" then
            doFear2(ret.id, ret.cd, ret.check, ret.skill)
        elseif ret.cond and ret.cond == "Stun" then
            doStun2(ret.id, ret.cd, ret.eff, ret.check, ret.spell)
        elseif ret.cond and ret.cond == "Paralyze" then
            doParalyze2(ret.id, ret.cd, ret.eff, ret.check, ret.first)
        elseif ret.cond and ret.cond == "Sleep" then
            doSleep2(ret.id, ret.cd, ret.check, ret.first)
        elseif ret.cond and ret.cond == "Leech" then
            doLeech2(ret.id, ret.attacker, ret.cd, ret.check, ret.damage)
        end
    end
end

--------------------------------
function cleanBuffs2(item)
if item ~= 0 then
   for i = 1, 3 do
       doItemEraseAttribute(item, Buffs[i][1])
       doItemEraseAttribute(item, Buffs[i][1].."eff")
       doItemEraseAttribute(item, Buffs[i][1].."skill")
   end   
end
end 
--------------------------------
function doCureStatus(cid, type, playerballs)
	if not isCreature(cid) then return true end
	if playerballs and isPlayer(cid) then
		local bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)
		local mb = getPlayerSlotItem(cid, 8)
		if isPokeball(mb.itemid) then
			if not type or type == "all" then
				for b = 1, #injuries2 do
				doItemSetAttribute(mb.uid, ""..injuries2[b].n.."", -1)
				end
			else
				doItemSetAttribute(mb.uid, ""..type.."", -1)
			end
		end
	for bname, balls in pairs (pokeballs) do
		for times = 1,3 do
		local items = getItemsInContainerById(bp.uid, balls.all[times]) 
			for _, uid in pairs(items) do
				if not type or type == "all" then
					for b = 1, #injuries2 do
					doItemSetAttribute(uid, ""..injuries2[b].n.."", -1)
					end
				else
					doItemSetAttribute(uid, ""..type.."", -1)
				end
			end
		end
	end
	end
	if type == "all" then
		for a = 1, #injuries2 do
			setPlayerStorageValue(cid, injuries2[a].m, -1)
		end
	return true
	end
	for a, b in pairs (injuries2) do
		if b.n == type then
		setPlayerStorageValue(cid, b.m, -1)
		end
	end
end 
---------------------------------
function isWithCondition(cid)
for i = 1, #injuries2 do 
   if getPlayerStorageValue(cid, injuries2[i].m) >= 1 then
      return true
   end
end
return false
end
---------------------------------
function doCureBallStatus(item, type)
	if not type or type == "all" then
		for b = 1, #injuries2 do
		doItemSetAttribute(item, ""..injuries2[b].n.."", -1)
		end
	else
		doItemSetAttribute(item, ""..type.."", -1)
	end
end
---------------------------------
function isBurning(cid)
	if not isCreature(cid) then return false end
	if getPlayerStorageValue(cid, conds["Burn"]) >= 0 then return true end
return false
end

function isPoisoned(cid)
	if not isCreature(cid) then return false end
	if getPlayerStorageValue(cid, conds["Poison"]) >= 0 then return true end
return false
end

function isSilence(cid)
    if not isCreature(cid) then return false end
    if getPlayerStorageValue(cid, conds["Silence"]) >= 0 then return true end
return false
end

function isParalyze(cid)      
    if not isCreature(cid) then return false end
    if getPlayerStorageValue(cid, conds["Paralyze"]) >= 0 then return true end
return false
end
    
function isSleeping(cid)
    if not isCreature(cid) then return false end
    if getPlayerStorageValue(cid, conds["Sleep"]) >= 0 then return true end
return false
end

function isWithFear(cid)
    if not isCreature(cid) then return false end
    if getPlayerStorageValue(cid, conds["Fear"]) >= 0 then return true end
return false
end 
-----------------------------------
function doMoveInArea2(cid, eff, area, element, min, max, spell, ret)
if not isCreature(cid) then return true end
   
   local pos = getPosfromArea(cid, area)  --alterado v1.8
   setPlayerStorageValue(cid, 21101, -1) 
   
   local skills = { "Skull Bash", "Gust", "Water Pulse", "Stick Throw", "Last Resort", "Ground Crusher", "Overheat", "Toxic", "Take Down", "Gyro Ball"} --alterado v1.7
   local n = 0 
   local l = 0

while n < #pos do
if not isCreature(cid) then return true end 
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end   
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end

   n = n+1
   thing = {x=pos[n].x,y=pos[n].y,z=pos[n].z,stackpos=253}
   local pid = getThingFromPosWithProtect(thing)
   ----15728
   
   if spell == "Earthquake" and pid ~= cid and isCreature(pid) and not isPlayer(pid) then
      doJumpCreature(pid)
   end
   
   
   if pid ~= cid then
   if spell and isInArray(skills, spell) then
	  if spell and spell == "Gyro Ball" then   --alterado v1.7
         pos[n].x = pos[n].x+1
         addEvent(sendEffWithProtect, l*200, cid, pos[n], eff)
         addEvent(doMoveDano2, l*200, cid, pid, element, min, max, ret, spell) 
      else
         addEvent(sendEffWithProtect, l*200, cid, pos[n], eff)
         addEvent(doMoveDano2, l*200, cid, pid, element, min, max, ret, spell)  --alterado v1.6  
      end
   elseif spell and spell == "Epicenter" then
      local random = math.random(50, 500)   
      addEvent(sendEffWithProtect, random, cid, pos[n], eff)
      addEvent(doDanoWithProtect, random, cid, GROUNDDAMAGE, pos[n], crusher, -min, -max, 255)
   elseif spell and spell == "Shadowave" then
      posi = {x=pos[n].x, y=pos[n].y+1, z=pos[n].z}
      sendEffWithProtect(cid, posi, eff)
      doMoveDano2(cid, pid, element, min, max, ret, spell) --alterado v1.6 
   elseif spell and spell == "Surf" then
      addEvent(sendEffWithProtect, math.random(50, 500), cid, pos[n], eff)
      addEvent(doMoveDano2, 400, cid, pid, element, min, max, ret, spell)  --alterado v1.6 
   elseif spell and spell == "Sand Attack" then
      addEvent(sendEffWithProtect, n*200, cid, pos[n], eff)
      addEvent(doMoveDano2, n*200, cid, pid, element, min, max, ret, spell) --alterado v1.6 
   elseif spell and (spell == "Muddy Water" or spell == "Venom Motion") then
      local arr = {
      [1] = 0, [2] = 0, [3] = 0, [4] = 200, [5] = 200, [6] = 200, [7] = 400, [8] = 400, [9] = 400, [10] = 600, [11] = 600,
      [12] = 600, [13] = 800, [14] = 800, [15] = 800
      }

      local time = {0, 200, 400, 600, 800}
             
      addEvent(sendEffWithProtect, arr[n], cid, pos[n], eff)
      addEvent(doMoveDano2, arr[n], cid, pid, element, min, max, ret, spell)
   elseif spell and (spell == "Inferno" or spell == "Fissure") then
      addEvent(sendEffWithProtect, math.random(0, 500), cid, pos[n], eff)
      addEvent(doMoveDano2, math.random(0, 500), cid, pid, element, min, max, ret, spell) 
   elseif spell == "Last Resort" then

		local pos = getThingPosWithDebug(cid)
		local areas = {rock5, rock4, rock3, rock2, rock1, rock5, rock4, rock3, rock2, rock1}

		for i = 0, 9 do
			addEvent(doMoveInArea2, i*400, cid, 3, areas[i+1], NORMALDAMAGE, min, max, spell)
			addEvent(doMoveInArea2, i*410, cid, 3, areas[i+1], NORMALDAMAGE, 0, 0, spell)
		end
   else
      sendEffWithProtect(cid, pos[n], eff)
      doMoveDano2(cid, pid, element, min, max, ret, spell) 
   end
   end
   l = l+1
end
end
-------------------------------------------
function doMoveDano2(cid, pid, element, min, max, ret, spell)
if isCreature(pid) and isCreature(cid) and cid ~= pid then
   if isNpcSummon(pid) and getCreatureTarget(pid) ~= cid then
      return true                             --alterado v1.6
   end
   if ehNPC(pid) then return true end
   ---
   local canAtk = true     --alterado v1.6
   if getPlayerStorageValue(pid, 21099) >= 1 then
      doSendMagicEffect(getThingPosWithDebug(pid), 135)
      doSendAnimatedText(getThingPosWithDebug(pid), "REFLECT", COLOR_GRASS)
      addEvent(docastspell, 100, pid, spell)
      if getCreatureName(pid) == "Wobbuffet" or getCreatureName(pid) == "Reflector Wobbuffet" or getCreatureName(pid) == "Wowofet" then
         doRemoveCondition(pid, CONDITION_OUTFIT)    
      end
      canAtk = false
      setPlayerStorageValue(pid, 21099, -1)
      setPlayerStorageValue(pid, 21100, 1)
      setPlayerStorageValue(pid, 21101, cid)
      setPlayerStorageValue(pid, 21103, getTableMove(cid, getPlayerStorageValue(cid, 21102)).f)
   end
   ---   
   if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
   if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
      if isSummon(cid) and (ehMonstro(pid) or (isSummon(pid) and canAttackOther(cid, pid) == "Can") or (isPlayer(pid) and canAttackOther(cid, pid) == "Can" and #getCreatureSummons(pid) <= 0)) and pid ~= cid then
         if canAtk then     --alterado v1.6
if ret and ret.cond then
    if type(ret.cond) == "table" then
        for i = 1, #ret.cond do
            ret.id = pid
            ret.check = getPlayerStorageValue(pid, conds[ret.cond[i]])
            doCondition2(ret)
        end
    else
        ret.id = pid
        ret.check = getPlayerStorageValue(pid, conds[ret.cond])
        doCondition2(ret)
    end
end
			doTargetCombatHealth(cid, pid, element, -(math.abs(min)), -(math.abs(max)), 255)
         end
      elseif ehMonstro(cid) and (isSummon(pid) or (isPlayer(pid) and #getCreatureSummons(pid) <= 0)) and pid ~= cid then
         if canAtk then    --alterado v1.6
if ret and ret.cond then
    if type(ret.cond) == "table" then
        for i = 1, #ret.cond do
            ret.id = pid
            ret.check = getPlayerStorageValue(pid, conds[ret.cond[i]])
            doCondition2(ret)
        end
    else
        ret.id = pid
        ret.check = getPlayerStorageValue(pid, conds[ret.cond])
        doCondition2(ret)
    end
end
               doTargetCombatHealth(cid, pid, element, -(math.abs(min)), -(math.abs(max)), 255)
         end
      elseif isPlayer(cid) and ehMonstro(pid) and pid ~= cid then
         if canAtk then    --alterado v1.6
if ret and ret.cond then
    if type(ret.cond) == "table" then
        for i = 1, #ret.cond do
            ret.id = pid
            ret.check = getPlayerStorageValue(pid, conds[ret.cond[i]])
            doCondition2(ret)
        end
    else
        ret.id = pid
        ret.check = getPlayerStorageValue(pid, conds[ret.cond])
        doCondition2(ret)
    end
end
               doTargetCombatHealth(cid, pid, element, -(math.abs(min)), -(math.abs(max)), 255)
         end
      end
end
end
--------------------------------------------------------------------------------
function sendEffWithProtect(cid, pos, eff)  --Manda algum magic effect com proteçoes 
if not isCreature(cid) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
local checkpos = pos
		checkpos.stackpos = 0
if not hasTile(checkpos) then
return true
end
if not canWalkOnPos2(pos, false, true, false, true, false) then --alterado v1.6
return true
end

   doSendMagicEffect(pos, eff)
end
---------------------------------------------------------------------------------
function getThingPosWithDebug(what)
	if not isCreature(what) or getCreatureHealth(what) <= 0 then
	return {x = 1, y = 1, z = 10}
	end
return getThingPos(what)
end
---------------------------------------------------------------------------------
function doDanoWithProtect(cid, element, pos, area, min, max, eff)  --Da dano com proteçoes
if not isCreature(cid) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
   doAreaCombatHealth(cid, element, pos, area, -(math.abs(min)), -(math.abs(max)), eff)
   --print("Erro subistituir magia: " .. getPlayerStorageValue(cid, 21102))
end
---------------------------------------------------------------------------------
function doDanoWithProtectWithDelay(cid, target, element, min, max, eff, area)
const_distance_delay = 56
if not isCreature(cid) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
   if target ~= 0 and isCreature(target) and not area then
      delay = getDistanceBetween(getThingPosWithDebug(cid), getThingPosWithDebug(target)) * const_distance_delay
      addEvent(doDanoWithProtect, delay, cid, element, getThingPosWithDebug(target), 0, min, max, eff)
      return true
   end
addEvent(doDanoWithProtect, 200, cid, element, getThingPosWithDebug(target), area, min, max, eff)
end   
--------------------------------------------------------------------------------
function sendDistanceShootWithProtect(cid, frompos, topos, eff)    --Manda um efeito de distancia com proteçoes
if not isCreature(cid) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
   doSendDistanceShoot(frompos, topos, eff)
end
---------------------------------------------------------------------------------
function sendMoveBack(cid, pos, eff, min, max)     --Manda o Atk do farfetchd de volta...
local m = #pos+1
for i = 1, #pos do
    if not isCreature(cid) then return true end
    ---
    m = m-1
    thing = {x=pos[m].x,y=pos[m].y,z=pos[m].z,stackpos=253}
    local pid = getThingFromPosWithProtect(thing)
    addEvent(doMoveDano2, i*200, cid, pid, FLYINGDAMAGE, min/4, max/4)  
    addEvent(sendEffWithProtect, i*200, cid, pos[m], eff)   --alterado v1.3
    -- 
end
end  
---------------------------------------------------------------------------------
function upEffect(cid, effDis)
if not isCreature(cid) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
pos = getThingPos(cid)
frompos = {x = pos.x+1, y = pos.y, z = pos.z}
frompos.x = pos.x - math.random(4, 7)
frompos.y = pos.y - math.random(5, 8)
doSendDistanceShoot(getThingPos(cid), frompos, effDis)
end
---------------------------------------------------------------------------------
function fall(cid, master, element, effDis, effArea)   --Function pra jogar efeitos pra cima e cair depois... tpw falling rocks e blizzard
if isCreature(cid) then
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
   pos = getThingPos(cid)
   pos.x = pos.x + math.random(-4,4)
   pos.y = pos.y + math.random(-4,4)
   if isMonster(cid) or isPlayer(cid) then
      frompos = {x = pos.x+1, y = pos.y, z = pos.z}
   elseif isSummon(cid) then
      frompos = getThingPos(master)
   end
   frompos.x = pos.x - 7
   frompos.y = pos.y - 6
   if effDis ~= -1 then                --alterado!
      doSendDistanceShoot(frompos, pos, effDis)
   end
   doAreaCombatHealth(cid, element, pos, 0, 0, 0, effArea)
end
end
---------------------------------------------------------------------------------
function canDoMiss(cid, nameAtk)                                            --alterado v1.5
local atkTerra = {"Sand Attack", "Mud Shot", "Mud Bomb", "Stomp", "Crusher Stomp", "Mud Slap", "Sand Tomb"} --alterado v1.7
local atkElectric = {"Electric Storm", "Thunder Wave", "Thunder", "Electricity", "Wild Charge"}  --alterado v1.7
if not isCreature(cid) then return false end
if isPlayer(cid) then return true end
if not pokes[getCreatureName(cid)] then return true end

if isInArray(atkTerra, nameAtk) then
   if (pokes[getCreatureName(cid)].type == "flying") or (pokes[getCreatureName(cid)].type2 == "flying") or isInArray(specialabilities["levitate"], getCreatureName(cid))  then
      return false      
   end
elseif isInArray(atkElectric, nameAtk) then
   if (pokes[getCreatureName(cid)].type == "ground") or (pokes[getCreatureName(cid)].type2 == "ground") then
      return false      
   end
end

return true
end
---------------------------------------------------------------------------------
function doMoveInAreaMulti(cid, effDis, effMagic, areaEff, areaDano, element, min, max, ret)   --alterado v1.7
if not isCreature(cid) then return true end                     
local pos = getPosfromArea(cid, areaEff)
local pos2 = getPosfromArea(cid, areaDano)
local n = 0

while n < #pos2 do
if not isCreature(cid) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end

n = n+1
thing = {x=pos2[n].x,y=pos2[n].y,z=pos2[n].z,stackpos=253}
      if n < #pos then
         addEvent(sendDistanceShootWithProtect, 50, cid, getThingPos(cid), pos[n], effDis) --39
         addEvent(sendEffWithProtect, 100, cid, pos[n], effMagic)  -- 112
         ---                                                                                        --alterado v1.6.1
         if math.random(1, 2) == 2 then
            addEvent(sendDistanceShootWithProtect, 450, cid, getThingPos(cid), pos[n], effDis) --550
            addEvent(sendEffWithProtect, 550, cid, pos[n], effMagic)  -- 650
         end
      end   
      local pid = getThingFromPosWithProtect(thing)
      if isCreature(pid) then
         if ret and ret.id == 0 then     --alterado v1.8
            ret.id = pid
            ret.check = getPlayerStorageValue(pid, conds[ret.cond])
         end
         if not ret then ret = {} end --alterado v1.7
         doMoveDano2(cid, pid, element, min, max, ret, getPlayerStorageValue(cid, 21102))
      end
end       
end 
---------------------------------------------------------------------------------------
function doDoubleHit(cid, pid, valor, cor)           --alterado v1.6
if isCreature(cid) and isCreature(pid) then
   if getPlayerStorageValue(cid, 374896) >= 1 then
         if isInArray({"Kadabra", "Alakazam", "Mew", "Shiny Abra", "Shiny Alakazam"}, getCreatureName(cid)) then
            doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(pid), 39)
         end
		    valor = valor * -1
            doCreatureAddHealth(pid, -math.abs(valor))
			doSendMagicEffect(getThingPos(pid), 3)
			doSendAnimatedText(getThingPos(pid), (valor == 0 and "" or valor), cor)
   end
end
end
---------------------------------------------------------------------------------------
function doDanoInTarget(cid, target, combat, min, max, eff)   --alterado v1.7
if not isCreature(cid) or not isCreature(target) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
   doTargetCombatHealth(cid, target, combat, -math.abs(min), -math.abs(max), eff)
end 
-----------------------------------------------------------------------------------------
function doDanoInTargetWithDelay(cid, target, combat, min, max, eff)     --alterado v1.7
const_distance_delay = 56
if not isCreature(cid) or not isCreature(target) then return true end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
   local delay = getDistanceBetween(getThingPosWithDebug(cid), getThingPosWithDebug(target)) * const_distance_delay
   addEvent(doDanoInTarget, delay, cid, target, combat, min, max, eff)
end 

 

 

 

o melee em tipo fanstama parou ^^ mas o do miracle eye em fantasma nao entendi ja que PSYCHIC é pra bater em fanstama mas nao em dark

Link para o comentário
Compartilhar em outros sites

Abaixo de:

function doMoveInArea2(cid, eff, area, element, min, max, spell, ret)if not isCreature(cid) then return true end

coloque:

if tostring(getPlayerStorageValue(cid, 21102)) ~= spell then    setPlayerStorageValue(cid, 21102, spell)end

Depois, abaixo de:

function doMoveDano2(cid, pid, element, min, max, ret, spell)

coloque:

if tostring(getPlayerStorageValue(cid, 21102)) ~= spell then    setPlayerStorageValue(cid, 21102, spell)end

 

Quanto ao Miracle Eye, teoricamente, com ele ativado, uma magia psíquica pode atingir tipos dark. Não é isso que está acontecendo?

Link para o comentário
Compartilhar em outros sites

15 minutos atrás, zipter98 disse:

Abaixo de:

function doMoveInArea2(cid, eff, area, element, min, max, spell, ret)if not isCreature(cid) then return true end

coloque:

if tostring(getPlayerStorageValue(cid, 21102)) ~= spell then    setPlayerStorageValue(cid, 21102, spell)end

Depois, abaixo de:

function doMoveDano2(cid, pid, element, min, max, ret, spell)

coloque:

if tostring(getPlayerStorageValue(cid, 21102)) ~= spell then    setPlayerStorageValue(cid, 21102, spell)end

 

Quanto ao Miracle Eye, teoricamente, com ele ativado, uma magia psíquica pode atingir tipos dark. Não é isso que está acontecendo?

 

é mas voce disse pra tentar usar em ghost, nao dark

e nao, nem esta acontecendo psychic spells nao estao batendo nada em dark com miracle eye

 

tambem agora queria mencionar uma coisa q eu nao consegui entender ainda, no DxP se você colocar em Offense um valor maior a 2 os bixos ficam batendo danos ridiculos saberia me dizer o porque?

tambem as veces com spells em area tipo Bullet Seed, Petal Dance, etc as vecez daba HS no seu pokemon nem sei se for pelo valor do Offense de +2 OU por algum bug q ja acontece nos pdas q na area do "psywave" em um certo sqm daba dano de 283921834294 mas nos outros normal

 

 

 

Editado por Josegvb
Link para o comentário
Compartilhar em outros sites

Acho que foi erro de interpretação seu, eu não disse em momento algum para testá-lo em pokémons fantasmas (eu disse para testar o melee neles).

De qualquer jeito, fiz uma pequena edição no bloco do Miracle Eye. Teoricamente está certo, mas peço que o teste e confirme.

 

Nunca baixei essa base ou li outros códigos dela além dos que você postou, e, mesmo neles, li apenas o que era necessário para as correções. Por isso, não sei dizer o motivo disso. Talvez seja devido às fórmulas usadas no servidor, quem sabe.

Editado por zipter98
Link para o comentário
Compartilhar em outros sites

17 minutos atrás, zipter98 disse:

Acho que foi erro de interpretação seu, eu não disse em momento algum para testá-lo em pokémons fantasmas (eu disse para testar o melee neles).

De qualquer jeito, fiz uma pequena edição no bloco do Miracle Eye. Peço que teste-o e confirme se desta vez está funcionando.

 

Nunca baixei essa base ou li outros códigos dela além dos que você postou, e, mesmo neles, li apenas o que era necessário para as correções. Por isso, não sei dizer o motivo disso. Talvez seja devido às fórmulas usadas no servidor, quem sabe.

 

testei aki e ainda nao, só AS VECES q funfa

Spoiler
[16/12/2016 22:15:32] Entrando no escopo...[16/12/2016 22:15:32] Valor da storage: melee[16/12/2016 22:15:32] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:32] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:32] Entrando no escopo de MELEE...[16/12/2016 22:15:32] Value antes de getEffectvineCombat: -67[16/12/2016 22:15:32] Value depois de getEffectvineCombat: -67[16/12/2016 22:15:32] Dano fica: -134[16/12/2016 22:15:32] Entrando no escopo...[16/12/2016 22:15:32] Valor da storage: melee[16/12/2016 22:15:32] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:32] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:32] Entrando no escopo de MELEE...[16/12/2016 22:15:32] Value antes de getEffectvineCombat: -103[16/12/2016 22:15:32] Value depois de getEffectvineCombat: -133.9[16/12/2016 22:15:32] Dano fica: -535.6[16/12/2016 22:15:33] Entrando no escopo...[16/12/2016 22:15:33] Valor da storage: Psyshock[16/12/2016 22:15:33] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:33] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:33] Entrando no escopo de MAGIA...[16/12/2016 22:15:33] Entrando no escopo...[16/12/2016 22:15:33] Valor da storage: Psyshock[16/12/2016 22:15:33] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:33] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:33] Entrando no escopo de MAGIA...[16/12/2016 22:15:33] Entrando no escopo...[16/12/2016 22:15:33] Valor da storage: Quick Attack[16/12/2016 22:15:33] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:33] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:33] Entrando no escopo de MAGIA...[16/12/2016 22:15:33] Valor final: -1347.48[16/12/2016 22:15:34] Entrando no escopo...[16/12/2016 22:15:34] Valor da storage: Psyshock[16/12/2016 22:15:34] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:34] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:34] Entrando no escopo de MAGIA...[16/12/2016 22:15:34] Entrando no escopo...[16/12/2016 22:15:34] Valor da storage: Psyshock[16/12/2016 22:15:34] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:34] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:34] Entrando no escopo de MAGIA...[16/12/2016 22:15:34] Entrando no escopo...[16/12/2016 22:15:34] Valor da storage: Psyshock[16/12/2016 22:15:34] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:34] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:34] Entrando no escopo de MAGIA...[16/12/2016 22:15:34] Entrando no escopo...[16/12/2016 22:15:34] Valor da storage: melee[16/12/2016 22:15:34] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:34] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:34] Entrando no escopo de MELEE...[16/12/2016 22:15:34] Value antes de getEffectvineCombat: -105[16/12/2016 22:15:34] Value depois de getEffectvineCombat: -136.5[16/12/2016 22:15:34] Dano fica: -546[16/12/2016 22:15:35] Entrando no escopo...[16/12/2016 22:15:35] Valor da storage: Psyshock[16/12/2016 22:15:35] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:35] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:35] Entrando no escopo de MAGIA...[16/12/2016 22:15:35] Entrando no escopo...[16/12/2016 22:15:35] Valor da storage: Psyshock[16/12/2016 22:15:35] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:35] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:35] Entrando no escopo de MAGIA...[16/12/2016 22:15:36] Entrando no escopo...[16/12/2016 22:15:36] Valor da storage: melee[16/12/2016 22:15:36] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:36] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:36] Entrando no escopo de MELEE...[16/12/2016 22:15:36] Value antes de getEffectvineCombat: -114[16/12/2016 22:15:36] Value depois de getEffectvineCombat: -148.2[16/12/2016 22:15:36] Dano fica: -592.8[16/12/2016 22:15:36] Entrando no escopo...[16/12/2016 22:15:36] Valor da storage: Quick Attack[16/12/2016 22:15:36] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:36] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:36] Entrando no escopo de MAGIA...[16/12/2016 22:15:36] Valor final: -1411.32[16/12/2016 22:15:36] Entrando no escopo...[16/12/2016 22:15:36] Valor da storage: Psyshock[16/12/2016 22:15:36] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:36] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:36] Entrando no escopo de MAGIA...[16/12/2016 22:15:37] Entrando no escopo...[16/12/2016 22:15:37] Valor da storage: Psyshock[16/12/2016 22:15:37] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:37] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:38] Entrando no escopo de MAGIA...[16/12/2016 22:15:38] Entrando no escopo...[16/12/2016 22:15:38] Valor da storage: Psyshock[16/12/2016 22:15:38] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:38] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:38] Entrando no escopo de MAGIA...[16/12/2016 22:15:38] Entrando no escopo...[16/12/2016 22:15:38] Valor da storage: melee[16/12/2016 22:15:38] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:38] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:38] Entrando no escopo de MELEE...[16/12/2016 22:15:38] Value antes de getEffectvineCombat: -104[16/12/2016 22:15:38] Value depois de getEffectvineCombat: -135.2[16/12/2016 22:15:38] Dano fica: -540.8[16/12/2016 22:15:39] Entrando no escopo...[16/12/2016 22:15:39] Valor da storage: Psyshock[16/12/2016 22:15:39] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:39] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:39] Entrando no escopo de MAGIA...[16/12/2016 22:15:39] Entrando no escopo...[16/12/2016 22:15:39] Valor da storage: Quick Attack[16/12/2016 22:15:39] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:39] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:39] Entrando no escopo de MAGIA...[16/12/2016 22:15:39] Valor final: -1378.26[16/12/2016 22:15:40] Entrando no escopo...[16/12/2016 22:15:40] Valor da storage: Psyshock[16/12/2016 22:15:40] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:40] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:40] Entrando no escopo de MAGIA...[16/12/2016 22:15:40] Entrando no escopo...[16/12/2016 22:15:40] Valor da storage: melee[16/12/2016 22:15:40] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:40] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:40] Entrando no escopo de MELEE...[16/12/2016 22:15:40] Value antes de getEffectvineCombat: -67[16/12/2016 22:15:40] Value depois de getEffectvineCombat: -67[16/12/2016 22:15:40] Dano fica: -134[16/12/2016 22:15:40] Entrando no escopo...[16/12/2016 22:15:40] Valor da storage: Psyshock[16/12/2016 22:15:40] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:40] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:40] Entrando no escopo de MAGIA...[16/12/2016 22:15:40] Entrando no escopo...[16/12/2016 22:15:40] Valor da storage: Psyshock[16/12/2016 22:15:40] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:40] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:40] Entrando no escopo de MAGIA...[16/12/2016 22:15:41] Entrando no escopo...[16/12/2016 22:15:41] Valor da storage: melee[16/12/2016 22:15:41] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:41] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:41] Entrando no escopo de MELEE...[16/12/2016 22:15:41] Value antes de getEffectvineCombat: -104[16/12/2016 22:15:41] Value depois de getEffectvineCombat: -135.2[16/12/2016 22:15:41] Dano fica: -540.8[16/12/2016 22:15:41] Entrando no escopo...[16/12/2016 22:15:41] Valor da storage: Psyshock[16/12/2016 22:15:41] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:41] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:41] Entrando no escopo de MAGIA...[16/12/2016 22:15:41] Entrando no escopo...[16/12/2016 22:15:41] Valor da storage: Psyshock[16/12/2016 22:15:41] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:41] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:41] Entrando no escopo de MAGIA...[16/12/2016 22:15:41] Entrando no escopo...[16/12/2016 22:15:41] Valor da storage: Psyshock[16/12/2016 22:15:41] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:41] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:41] Entrando no escopo de MAGIA...[16/12/2016 22:15:41] Entrando no escopo...[16/12/2016 22:15:42] Valor da storage: Psyshock[16/12/2016 22:15:42] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:42] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:42] Entrando no escopo de MAGIA...[16/12/2016 22:15:42] Entrando no escopo...[16/12/2016 22:15:42] Valor da storage: Psyshock[16/12/2016 22:15:42] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:42] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:42] Entrando no escopo de MAGIA...[16/12/2016 22:15:42] Entrando no escopo...[16/12/2016 22:15:42] Valor da storage: Psyshock[16/12/2016 22:15:42] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:42] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:42] Entrando no escopo de MAGIA...[16/12/2016 22:15:43] Entrando no escopo...[16/12/2016 22:15:43] Valor da storage: melee[16/12/2016 22:15:43] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:43] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:43] Entrando no escopo de MELEE...[16/12/2016 22:15:43] Value antes de getEffectvineCombat: -91[16/12/2016 22:15:43] Value depois de getEffectvineCombat: -118.3[16/12/2016 22:15:43] Dano fica: -473.2[16/12/2016 22:15:43] Entrando no escopo...[16/12/2016 22:15:43] Valor da storage: Quick Attack[16/12/2016 22:15:43] Pokemon atacante: Shiny Umbreon[16/12/2016 22:15:43] Pokemon defensor: Shiny Hypno[16/12/2016 22:15:43] Entrando no escopo de MAGIA...[16/12/2016 22:15:43] Valor final: -1368[16/12/2016 22:15:43] Entrando no escopo...[16/12/2016 22:15:43] Valor da storage: Psyshock[16/12/2016 22:15:43] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:43] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:43] Entrando no escopo de MAGIA...[16/12/2016 22:15:43] Valor final: -1435.5[16/12/2016 22:15:43] Entrando no escopo...[16/12/2016 22:15:43] Valor da storage: Psyshock[16/12/2016 22:15:43] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:43] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:43] Entrando no escopo de MAGIA...[16/12/2016 22:15:44] Entrando no escopo...[16/12/2016 22:15:44] Valor da storage: Psyshock[16/12/2016 22:15:44] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:44] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:44] Entrando no escopo de MAGIA...[16/12/2016 22:15:44] Entrando no escopo...[16/12/2016 22:15:44] Valor da storage: Psyshock[16/12/2016 22:15:44] Pokemon atacante: Shiny Hypno[16/12/2016 22:15:44] Pokemon defensor: Shiny Umbreon[16/12/2016 22:15:44] Entrando no escopo de MAGIA...

 

 

com o psychic funfou mais seguido:

Spoiler
[16/12/2016 22:17:25] Entrando no escopo...[16/12/2016 22:17:25] Valor da storage: melee[16/12/2016 22:17:25] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:25] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:25] Entrando no escopo de MELEE...[16/12/2016 22:17:25] Value antes de getEffectvineCombat: -115[16/12/2016 22:17:25] Value depois de getEffectvineCombat: -149.5[16/12/2016 22:17:25] Dano fica: -598[16/12/2016 22:17:27] Entrando no escopo...[16/12/2016 22:17:27] Valor da storage: Psychic[16/12/2016 22:17:27] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:27] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:27] Entrando no escopo de MAGIA...[16/12/2016 22:17:27] Valor final: -1543.575[16/12/2016 22:17:27] Entrando no escopo...[16/12/2016 22:17:27] Valor da storage: melee[16/12/2016 22:17:27] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:27] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:27] Entrando no escopo de MELEE...[16/12/2016 22:17:27] Value antes de getEffectvineCombat: -107[16/12/2016 22:17:27] Value depois de getEffectvineCombat: -139.1[16/12/2016 22:17:27] Dano fica: -556.4[16/12/2016 22:17:27] Entrando no escopo...[16/12/2016 22:17:27] Valor da storage: melee[16/12/2016 22:17:27] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:27] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:27] Entrando no escopo de MELEE...[16/12/2016 22:17:27] Value antes de getEffectvineCombat: -94[16/12/2016 22:17:27] Value depois de getEffectvineCombat: -94[16/12/2016 22:17:27] Dano fica: -188[16/12/2016 22:17:28] Entrando no escopo...[16/12/2016 22:17:28] Valor da storage: Quick Attack[16/12/2016 22:17:28] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:28] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:28] Entrando no escopo de MAGIA...[16/12/2016 22:17:28] Valor final: -1398.78[16/12/2016 22:17:28] Entrando no escopo...[16/12/2016 22:17:28] Valor da storage: Psychic[16/12/2016 22:17:28] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:28] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:28] Entrando no escopo de MAGIA...[16/12/2016 22:17:29] Entrando no escopo...[16/12/2016 22:17:29] Valor da storage: melee[16/12/2016 22:17:29] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:29] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:29] Entrando no escopo de MELEE...[16/12/2016 22:17:29] Value antes de getEffectvineCombat: -98[16/12/2016 22:17:29] Value depois de getEffectvineCombat: -127.4[16/12/2016 22:17:29] Dano fica: -509.6[16/12/2016 22:17:29] Entrando no escopo...[16/12/2016 22:17:29] Valor da storage: melee[16/12/2016 22:17:29] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:29] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:29] Entrando no escopo de MELEE...[16/12/2016 22:17:29] Value antes de getEffectvineCombat: -85[16/12/2016 22:17:29] Value depois de getEffectvineCombat: -85[16/12/2016 22:17:29] Dano fica: -170[16/12/2016 22:17:30] Entrando no escopo...[16/12/2016 22:17:30] Valor da storage: Psychic[16/12/2016 22:17:30] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:30] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:30] Entrando no escopo de MAGIA...[16/12/2016 22:17:30] Valor final: -1461.075[16/12/2016 22:17:31] Entrando no escopo...[16/12/2016 22:17:31] Valor da storage: melee[16/12/2016 22:17:31] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:31] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:31] Entrando no escopo de MELEE...[16/12/2016 22:17:31] Value antes de getEffectvineCombat: -98[16/12/2016 22:17:31] Value depois de getEffectvineCombat: -127.4[16/12/2016 22:17:31] Dano fica: -509.6[16/12/2016 22:17:31] Entrando no escopo...[16/12/2016 22:17:31] Valor da storage: Quick Attack[16/12/2016 22:17:31] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:31] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:31] Entrando no escopo de MAGIA...[16/12/2016 22:17:31] Valor final: -1336.08[16/12/2016 22:17:32] Entrando no escopo...[16/12/2016 22:17:32] Valor da storage: Psychic[16/12/2016 22:17:32] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:32] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:32] Entrando no escopo de MAGIA...[16/12/2016 22:17:32] Valor final: -1532.85[16/12/2016 22:17:33] Entrando no escopo...[16/12/2016 22:17:33] Valor da storage: Psychic[16/12/2016 22:17:33] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:33] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:33] Entrando no escopo de MAGIA...[16/12/2016 22:17:33] Entrando no escopo...[16/12/2016 22:17:33] Valor da storage: melee[16/12/2016 22:17:33] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:33] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:33] Entrando no escopo de MELEE...[16/12/2016 22:17:33] Value antes de getEffectvineCombat: -50[16/12/2016 22:17:33] Value depois de getEffectvineCombat: -50[16/12/2016 22:17:33] Dano fica: -100[16/12/2016 22:17:33] Entrando no escopo...[16/12/2016 22:17:33] Valor da storage: melee[16/12/2016 22:17:33] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:33] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:33] Entrando no escopo de MELEE...[16/12/2016 22:17:33] Value antes de getEffectvineCombat: -124[16/12/2016 22:17:33] Value depois de getEffectvineCombat: -161.2[16/12/2016 22:17:33] Dano fica: -644.8[16/12/2016 22:17:34] Entrando no escopo...[16/12/2016 22:17:34] Valor da storage: Psychic[16/12/2016 22:17:34] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:34] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:34] Entrando no escopo de MAGIA...[16/12/2016 22:17:34] Entrando no escopo...[16/12/2016 22:17:34] Valor da storage: Psychic[16/12/2016 22:17:34] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:34] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:34] Entrando no escopo de MAGIA...[16/12/2016 22:17:35] Entrando no escopo...[16/12/2016 22:17:35] Valor da storage: Quick Attack[16/12/2016 22:17:35] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:35] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:35] Entrando no escopo de MAGIA...[16/12/2016 22:17:35] Valor final: -1361.16[16/12/2016 22:17:35] Entrando no escopo...[16/12/2016 22:17:35] Valor da storage: Miracle Eye[16/12/2016 22:17:35] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:35] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:35] Entrando no escopo de MAGIA...[16/12/2016 22:17:35] Valor final: -55.275[16/12/2016 22:17:35] Entrando no escopo...[16/12/2016 22:17:36] Valor da storage: Psychic[16/12/2016 22:17:36] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:36] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:36] Entrando no escopo de MAGIA...[16/12/2016 22:17:36] Entrando no escopo...[16/12/2016 22:17:36] Valor da storage: melee[16/12/2016 22:17:36] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:36] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:36] Entrando no escopo de MELEE...[16/12/2016 22:17:36] Value antes de getEffectvineCombat: -96[16/12/2016 22:17:36] Value depois de getEffectvineCombat: -124.8[16/12/2016 22:17:36] Dano fica: -499.2[16/12/2016 22:17:37] Entrando no escopo...[16/12/2016 22:17:37] Valor da storage: Psychic[16/12/2016 22:17:37] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:37] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:37] Entrando no escopo de MAGIA...[16/12/2016 22:17:38] Entrando no escopo...[16/12/2016 22:17:38] Valor da storage: Psychic[16/12/2016 22:17:38] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:38] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:38] Entrando no escopo de MAGIA...[16/12/2016 22:17:38] Valor final: -1572.45[16/12/2016 22:17:38] Entrando no escopo...[16/12/2016 22:17:38] Valor da storage: melee[16/12/2016 22:17:38] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:38] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:38] Entrando no escopo de MELEE...[16/12/2016 22:17:38] Value antes de getEffectvineCombat: -108[16/12/2016 22:17:38] Value depois de getEffectvineCombat: -140.4[16/12/2016 22:17:38] Dano fica: -561.6[16/12/2016 22:17:38] Entrando no escopo...[16/12/2016 22:17:38] Valor da storage: Quick Attack[16/12/2016 22:17:38] Pokemon atacante: Shiny Umbreon[16/12/2016 22:17:38] Pokemon defensor: Shiny Hypno[16/12/2016 22:17:38] Entrando no escopo de MAGIA...[16/12/2016 22:17:38] Valor final: -1353.18[16/12/2016 22:17:39] Entrando no escopo...[16/12/2016 22:17:39] Valor da storage: melee[16/12/2016 22:17:39] Pokemon atacante: Shiny Hypno[16/12/2016 22:17:39] Pokemon defensor: Shiny Umbreon[16/12/2016 22:17:39] Entrando no escopo de MELEE...[16/12/2016 22:17:39] Value antes de getEffectvineCombat: -73[16/12/2016 22:17:39] Value depois de getEffectvineCombat: -73[16/12/2016 22:17:39] Dano fica: -146

 

mas nao funfa mt seguido

enquanto o offense sim, eu ia te pedir pra vc dar uma olhada la msm no statschange q tem as formulas do offense se nao aqui a funçao getoffense

level system

Spoiler
function getPokemonHealth(name)                	if not pokes[string.lower(name)] then return false end	return getMonsterInfo(string.lower(name)).healthMaxendfunction adjustWildPoke(cid, optionalLevel)local BonusOffense = math.random(1,5) ------ chance de status 1 a 5 local BonusDefense = math.random(1,4)local BonusAgility = math.random(1,3)local Bonusvitality = math.random(1500,4500)local Bonusspecialattack = math.random(1,3)if not isCreature(cid) then return true endif isSummon(cid) then return true end	if getPlayerStorageValue(cid, 154585) ~= 1 then	   doSendMagicEffect(getThingPos(cid), 21)	end		local nick = doCorrectString(getCreatureName(cid))    local level = getPokemonLevelByName(nick)		if not pokes[nick] then return false end -- rever isto	     setPlayerStorageValue(cid, 1000, level) --alterado v1.8    setPlayerStorageValue(cid, 1001, pokes[nick].offense)    setPlayerStorageValue(cid, 1002, pokes[nick].defense + BonusDefense)    setPlayerStorageValue(cid, 1003, pokes[nick].agility * BonusAgility)                                      setPlayerStorageValue(cid, 1004, pokes[nick].vitality + Bonusvitality + pokes[nick].wildLvl)    setPlayerStorageValue(cid, 1005, pokes[nick].specialattack + Bonusspecialattack)	    doRegainSpeed(cid)	     --alterado!				local pokeLifeMax = pokes[nick].life 				if pokes[nick].wildLvl > 15 then           pokeLifeMax = pokeLifeMax * 2 + Bonusvitality + (pokes[nick].wildLvl)        end 		if pokes[nick].wildLvl < 30 then           BonusDefense = 1        end 				if pokes[nick].wildLvl < 30 then           BonusAgility = 1        end 			if pokes[nick].wildLvl < 30 then           Bonusspecialattack = 1        end						if string.find(nick, "Shiny") then			pokeLifeMax = pokeLifeMax * 4 + (200 * pokes[nick].wildLvl)		end				setCreatureMaxHealth(cid, pokeLifeMax) -- perfeita formula, os pokemons "ruins" só precisam de ajustes no pokemonStatus, tabela vitality.		doCreatureAddHealth(cid, getCreatureMaxHealth(cid))   end       function adjustStatus(pk, item, health, dittoLife, conditions, isPassiva)	if not isCreature(pk) then return true end-- Defense -- local heldBonusAttack = 1local heldBonusDefense = 1local heldBonusSpeed = 0local heldBonusVitality = 1local heldx = getItemAttribute(item, "xHeldItem")if heldx thenlocal heldName, heldTier = string.explode(heldx, "|")[1], string.explode(heldx, "|")[2]	  if heldName == "X-Attack" then		heldBonusAttack = heldAttack[tonumber(heldTier)]	  end	  if heldName == "X-Defense" then		heldBonusDefense = heldDefense[tonumber(heldTier)]	  end	  if heldName == "X-Haste" then		heldBonusSpeed = heldHaste[tonumber(heldTier)]	  end	  if heldName == "X-Vitality" then		heldBonusVitality = heldVitality[tonumber(heldTier)]	  endendlocal nick = getItemAttribute(item, "poke")	if isInArray({"ditto", "shiny ditto"}, nick) then	   if getItemAttribute(item, "copyName") then	      nick = getItemAttribute(item, "copyName")	   end	end	setPlayerStorageValue(pk, 1001, pokes[nick].offense * heldBonusAttack)	setPlayerStorageValue(pk, 1002, pokes[nick].defense * heldBonusDefense)	setPlayerStorageValue(pk, 1003, pokes[nick].agility + heldBonusSpeed)	setPlayerStorageValue(pk, 1004, pokes[nick].vitality * (getMasterLevel(pk) + getPokemonBoost(pk)))	setPlayerStorageValue(pk, 1005, pokes[nick].specialattack * heldBonusAttack)	local life_boost = 100 * getPokemonBoost(pk)				local pokeLifeMax = pokes[nick].life		local boost = getPokemonBoost(pk)		local masterLevel = getPlayerLevel(getCreatureMaster(pk))				-- base + ( vity * level + boost * 12.5 )			local life = (pokeLifeMax + (pokes[nick].vitality * (masterLevel + boost)) * 5) * (heldBonusVitality / 100 + 1)										--if getItemAttribute(item, "initialKit") then			--	life = getBallMaxHealthUnique(cid, item)			--end									setCreatureMaxHealth(pk, life) -- perfeita formula, os pokemons "ruins" só precisam de ajustes no pokemonStatus, tabela vitality.			local hpToDraw = not isPassiva and getItemAttribute(item, "hpToDraw") or 0				  if(not hpToDraw)then					doItemSetAttribute(item, "hpToDraw", 0)				  end				  if type(dittoLife) == "number" then 				     hpToDraw = dittoLife				  end			 				doCreatureAddHealth(pk, getCreatureMaxHealth(pk))				if hpToDraw > getCreatureHealth(pk) then				   hpToDraw = getCreatureHealth(pk)-1				end				doCreatureAddHealth(pk, -hpToDraw)				setBallHealth(item, getCreatureHealth(pk), getCreatureMaxHealth(pk))						local cid = getCreatureMaster(pk)			doSendLifePokeToOTC(cid)		                                                                      	doRegainSpeed(pk)      if isGhostPokemon(pk) then       setPlayerStorageValue(pk, 8981, 1)       updateGhostWalk(pk)    end    			if getItemAttribute(item, "nick") then		nick = getItemAttribute(item, "nick")	end	setPlayerStorageValue(pk, 1007, nick)	if not getItemAttribute(item, "happy") then		doItemSetAttribute(item, "happy", 120)	end	if not getItemAttribute(item, "hunger") then		doItemSetAttribute(item, "hunger", 5)	end	local happy = getItemAttribute(item, "happy")		if happy < 0 then			happy = 1		end	setPlayerStorageValue(pk, 1008, happy)	local hunger = getItemAttribute(item, "hunger")	setPlayerStorageValue(pk, 1009, hunger)		if isSummon(pk) and conditions then		local burn = getItemAttribute(item, "burn")   		if burn and burn >= 0 then		   local ret = {id = pk, cd = burn, check = false, damage = getItemAttribute(item, "burndmg"), cond = "Burn"}		   addEvent(doCondition2, 3500, ret)		end		local poison = getItemAttribute(item, "poison")		if poison and poison >= 0 then		   local ret = {id = pk, cd = poison, check = false, damage = getItemAttribute(item, "poisondmg"), cond = "Poison"}		   addEvent(doCondition2, 1500, ret)		end        local confuse = getItemAttribute(item, "confuse")		if confuse and confuse >= 0 then		   local ret = {id = pk, cd = confuse, check = false, cond = "Confusion"}		   addEvent(doCondition2, 1200, ret)                                                		end        local sleep = getItemAttribute(item, "sleep")		if sleep and sleep >= 0 then		   local ret = {id = pk, cd = sleep, check = false, first = true, cond = "Sleep"}		   doCondition2(ret)		end				local miss = getItemAttribute(item, "miss")     		if miss and miss >= 0 then                local ret = {id = pk, cd = miss, eff = getItemAttribute(item, "missEff"), check = false, spell = getItemAttribute(item, "missSpell"), cond = "Miss"}          doCondition2(ret)        end                local fear = getItemAttribute(item, "fear")        if fear and fear >= 0 then           local ret = {id = pk, cd = fear, check = false, skill = getItemAttribute(item, "fearSkill"), cond = "Fear"}           doCondition2(ret)        end                local silence = getItemAttribute(item, "silence")        if silence and silence >= 0 then                 local ret = {id = pk, cd = silence, eff = getItemAttribute(item, "silenceEff"), check = false, cond = "Silence"}           doCondition2(ret)        end                                                     local stun = getItemAttribute(item, "stun")        if stun and stun >= 0 then           local ret = {id = pk, cd = stun, eff = getItemAttribute(item, "stunEff"), check = false, spell = getItemAttribute(item, "stunSpell"), cond = "Stun"}           doCondition2(ret)        end                                                                local paralyze = getItemAttribute(item, "paralyze")        if paralyze and paralyze >= 0 then           local ret = {id = pk, cd = paralyze, eff = getItemAttribute(item, "paralyzeEff"), check = false, first = true, cond = "Paralyze"}           doCondition2(ret)        end                                                               local slow = getItemAttribute(item, "slow")        if slow and slow >= 0 then           local ret = {id = pk, cd = slow, eff = getItemAttribute(item, "slowEff"), check = false, first = true, cond = "Slow"}           doCondition2(ret)        end                                                              local leech = getItemAttribute(item, "leech")        if leech and leech >= 0 then           local ret = {id = pk, cd = leech, attacker = 0, check = false, damage = getItemAttribute(item, "leechdmg"), cond = "Leech"}           doCondition2(ret)        end                                               for i = 1, 3 do            local buff = getItemAttribute(item, "Buff"..i)            if buff and buff >= 0 then               local ret = {id = pk, cd = buff, eff = getItemAttribute(item, "Buff"..i.."eff"), check = false,                buff = getItemAttribute(item, "Buff"..i.."skill"), first = true, attr = "Buff"..i}               doCondition2(ret)            end        end               	end	                                                                      --alterado v1.9    if getItemAttribute(item, "boost") and getItemAttribute(item, "boost") >= 50 and getItemAttribute(item, "aura") then       sendAuraEffect(pk, auraSyst[getItemAttribute(item, "aura")])            end        if getPlayerStorageValue(getCreatureMaster(pk), 6598754) >= 1 then        setPlayerStorageValue(pk, 6598754, 1)                                   elseif getPlayerStorageValue(getCreatureMaster(pk), 6598755) >= 1 then        setPlayerStorageValue(pk, 6598755, 1)    endreturn trueendfunction getPokemonXMLOutfit(name)                --alterado v1.9 \/local path = "data/monster/pokes/Shiny/"..name..".xml"local tpw = io.type(io.open(path))if not tpw then   path = "data/monster/pokes/geracao 2/"..name..".xml"   tpw = io.type(io.open(path))endif not tpw then   path = "data/monster/pokes/geracao 1/"..name..".xml"   tpw = io.type(io.open(path))endif not tpw then   path = "data/monster/pokes/"..name..".xml"   tpw = io.type(io.open(path))end   if not tpw then   return print("[getPokemonXMLOutfit] Poke with name: "..name.." ins't in any paste on monster/pokes/") and 2end   local arq = io.open(path, "a+")   local txt = arq:read("*all")   arq:close()   local a, b = txt:find('look type="(.-)"')   txt = string.sub(txt, a + 11, b - 1)return tonumber(txt)end function getNPCXMLLOOKDIR(name)                --alterado v1.9 \/local path = namelocal tpw = io.type(io.open(path))if not tpw then   return falseend   local arq = io.open(path, "a+")   local txt = arq:read("*all")   arq:close()   local a, b = txt:find('lookdir="(.-)"')   txt = string.sub(txt, a + 9, b - 1)return tonumber(txt)end function doEvolutionOutfit(cid, oldout, outfit)	if not isCreature(cid) then return true end		if getCreatureOutfit(cid).lookType == oldout then			doSetCreatureOutfit(cid, {lookType = outfit}, -1)		else			doSetCreatureOutfit(cid, {lookType = oldout}, -1)		endendfunction doSendEvolutionEffect(cid, pos, evolution, turn, ssj, evolve, f, h)	if not isCreature(cid) then		doSendAnimatedText(pos, "CANCEL", 215)	    return true     end	if evolve then		doEvolvePokemon(getCreatureMaster(cid), {uid = cid}, evolution, 0, 0)	return true	end	doSendMagicEffect(pos, 18)		if ssj then			sendSSJEffect(evo)		end	doEvolutionOutfit(cid, f, h)	addEvent(doSendEvolutionEffect, math.pow(1900, turn/20), cid, getThingPos(cid), evolution, turn - 1, turn == 19, turn == 2, f, h)endfunction sendSSJEffect(cid)	if not isCreature(cid) then return true end	local pos1 = getThingPos(cid)	local pos2 = getThingPos(cid)	pos2.x = pos2.x + math.random(-1, 1)	pos2.y = pos2.y - math.random(1, 2)	doSendDistanceShoot(pos1, pos2, 37)	addEvent(sendSSJEffect, 45, cid)endfunction sendFinishEvolutionEffect(cid, alternate)	if not isCreature(cid) then return true end	local pos1 = getThingPos(cid)	if alternate then		local pos = {		[1] = {-2, 0},		[2] = {-1, -1},		[3] = {0, -2},		[4] = {1, -1},		[5] = {2, 0},		[6] = {1, 1},		[7] = {0, 2},		[8] = {-1, 1}}		for a = 1, 8 do			local pos2 = getThingPos(cid)			pos2.x = pos2.x + pos[a][1]			pos2.y = pos2.y + pos[a][2]			local pos = getThingPos(cid)			doSendDistanceShoot(pos2, pos, 37)			addEvent(doSendDistanceShoot, 300, pos, pos2, 37)		end	else		for a = 0, 3 do			doSendDistanceShoot(pos1, getPosByDir(pos1, a), 37)		end		for a = 4, 7 do			addEvent(doSendDistanceShoot, 600, pos1, getPosByDir(pos1, a), 37)		end	endendfunction doEvolvePokemon(cid, item2, theevo, stone1, stone2)	if not isCreature(cid) then return true end	if not pokes[theevo] or not pokes[theevo].offense then	doReturnPokemon(cid, item2.uid, getPlayerSlotItem(cid, 8), pokeballs[getPokeballType(getPlayerSlotItem(cid, 8).itemid)].effect, false, true)	return true	end	local owner = getCreatureMaster(item2.uid)	local pokeball = getPlayerSlotItem(cid, 8)	local description = "Contains a "..theevo.."."	local nick = getItemAttribute(pokeball.uid, "nick")		doItemSetAttribute(pokeball.uid, "poke", theevo)		doItemSetAttribute(pokeball.uid, "description", "Contains a "..theevo..".")		doPlayerSendTextMessage(cid, 27, "Congratulations! Your "..getPokeName(item2.uid).." evolved into a "..theevo.."!")				doSendMagicEffect(getThingPos(item2.uid), 18)		doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[theevo])		doSendMagicEffect(getThingPos(cid), 173)		local oldpos = getThingPos(item2.uid)		local oldlod = getCreatureLookDir(item2.uid)		doRemoveCreature(item2.uid)				if not nick then		   nick = theevo		end		pokeSourceCode = doCreateMonsterNick(cid, theevo, nick, getThingPos(cid), true)            if not pokeSourceCode then			   doSendMsg(cid, "Erro. Comunique esse codigo ao GM. [31121994]")			   return true			end		local pk = getCreatureSummons(cid)[1]		doTeleportThing(pk, oldpos, false)		doCreatureSetLookDir(pk, oldlod)		sendFinishEvolutionEffect(pk, true)		addEvent(sendFinishEvolutionEffect, 550, pk, true)		addEvent(sendFinishEvolutionEffect, 1050, pk)				doPlayerRemoveItem(cid, stone1, 1)		doPlayerRemoveItem(cid, stone2, 1)		doAddPokemonInOwnList(cid, theevo)		adjustStatus(pk, pokeball.uid, true, false)		if useKpdoDlls then			doUpdateMoves(cid)		endendfunction doMathDecimal(number, casas)	if math.floor(number) == number then return number end	local c = casas and casas + 1 or 3	for a = 0, 10 do		if math.floor(number) < math.pow(10, a) then			local str = string.sub(""..number.."", 1, a + c)			return tonumber(str)			end	endreturn numberendfunction doAdjustWithDelay(cid, pk, health, vit, status)if isCreature(cid) then                                      adjustStatus(pk, getPlayerSlotItem(cid, 8).uid, health, vir, status)endendfunction getOffense(cid)	if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1001))endfunction getDefense(cid)	if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1002))endfunction getSpeed(cid)	if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1003))endfunction getVitality(cid)	if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1004))endfunction getSpecialAttack(cid)	if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1005))endfunction getHappiness(cid)	if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1008))endfunction getSpecialDefense(cid)	if not isCreature(cid) then return 0 endreturn getSpecialAttack(cid) * 0.85 + getDefense(cid) * 0.2      endfunction getPokemonLevel(cid, dex)if not isCreature(cid) or not pokes[getCreatureName(cid)] then return 0 end     if not dex then                      --alterado v1.9       if ehMonstro(cid) and getPlayerStorageValue(cid, 1000) > 0 then            return getPlayerStorageValue(cid, 1000)       elseif ehMonstro(cid) then           return pokes[getCreatureName(cid)].wildLvl                    end    end   return pokes[getCreatureName(cid)].levelendfunction getPokemonLevelByName(name)return pokes[name] and pokes[name].level or 0  --alterado v1.9endfunction getMasterLevel(poke)    if not isSummon(poke) then return 0 endreturn getPlayerLevel(getCreatureMaster(poke))endfunction getPokemonBoost(poke)    if not isSummon(poke) then return 0 endreturn getItemAttribute(getPlayerSlotItem(getCreatureMaster(poke), 8).uid, "boost") or 0endfunction getPokeballBoost(ball)    if not isPokeball(ball.itemid) then return 0 end  --alterado v1.8return getItemAttribute(ball.uid, "boost") or 0endfunction getPokeName(cid)	if not isSummon(cid) then return getCreatureName(cid) end	if getCreatureName(cid) == "Evolution" then return getPlayerStorageValue(cid, 1007) end	local item = getPlayerSlotItem(getCreatureMaster(cid), 8)	if getItemAttribute(item.uid, "nick") then	   return getItemAttribute(item.uid, "nick")	end	if string.find(tostring(getCreatureName(cid)), "Shiny") then      local newName = tostring(getCreatureName(cid)):match("Shiny (.*)")      return newName    endreturn getCreatureName(cid)endfunction getPokeballName(item, truename)if not truename and getItemAttribute(item, "nick") thenreturn getItemAttribute(item, "nick")endreturn getItemAttribute(item, "poke")endfunction getPokemonName(cid)return getCreatureName(cid)endfunction getPokemonGender(cid) --alterado v1.9return getCreatureSkullType(cid)endfunction setPokemonGender(cid, gender)if isCreature(cid) and gender then        --alterado v1.8   doCreatureSetSkullType(cid, gender)   return trueendreturn falseendfunction getWildPokemonExp(cid)return getMonsterInfo(getCreatureName(cid)).experienceendfunction doRaiseHabilities(cid, value, lifeMult)if not isCreature(cid) then return true end    setPlayerStorageValue(cid, 1001, value)    setPlayerStorageValue(cid, 1002, value)    setPlayerStorageValue(cid, 1003, value)                                      setPlayerStorageValue(cid, 1004, value)    setPlayerStorageValue(cid, 1005, value)		local name = doCorrectString(getCreatureName(cid))		local pokeLifeMax = pokes[name].life * lifeMult						setCreatureMaxHealth(cid, pokeLifeMax) -- perfeita formula, os pokemons "ruins" só precisam de ajustes no pokemonStatus, tabela v		doCreatureAddHealth(cid, getCreatureMaxHealth(cid))end

 

 

Link para o comentário
Compartilhar em outros sites

Substitua o bloco do Miracle Eye pelo seguinte:

if spellRace == "psychic" and (isInArray(typeTable[spellRace].non, pokeElement1) or pokeElement2 and isInArray(typeTable[spellRace].non, pokeElement2)) and getPlayerStorageValue(attacker, 999457) > -1 then    print("Miracle Eye ativado.")    multiplier = multiplier - 0.3    setPlayerStorageValue(attacker, 999457, -1)     print("multiplier = "..multiplier)else    print("Miracle eye não ativado.")	if isInArray(typeTable[spellRace].non, pokeElement1) then 		 multiplier = multiplier * 0  	end	if pokeElement2 and isInArray(typeTable[spellRace].non, pokeElement2) then		multiplier = multiplier * 0	endend

Depois, troque:

value = value * multiplier

por:

print("Multiplier final: "..multiplier)print("Value antes da fórmula: "..value)value = value * multiplierprint("Value depois da fórmula: "..value)

Depois, no creatureevent, abaixo de:

value = getEffectvineSpell(attacker, spellNameFromAttacker, value, cid) -- checagem de efetividades de magia

coloque:

print("Value após getEffectvineSpell: "..value)

Faça o teste novamente e informe o que for imprimido (peço que especifique, quando for postar as informações, quando o Miracle Eye foi ou não usado).

 

Quanto ao problema do offense, há várias fórmulas usando este fator em, imagino, alguns arquivos.

A função que o obtém retorna:

pokes["nome_do_pokémon"].offense * heldBonusAttack

Que é, basicamente, o valor configurado na tabela pokes multiplicado pelo bônus do held item. 

Imagino que não seja um bug, mas sim cálculos mal formulados. Recomendaria pegar um PDA e basear-se nas fórmulas nele presentes.

Editado por zipter98
Link para o comentário
Compartilhar em outros sites

@zipter98 ok testando aqui: Hypnosis+Miracle Eye + Dream eater (nao bate)

Spoiler


[17/12/2016 21:54:04] Entrando no escopo...
[17/12/2016 21:54:04] Valor da storage: melee
[17/12/2016 21:54:04] Pokemon atacante: Shiny Umbreon
[17/12/2016 21:54:04] Pokemon defensor: Shiny Hypno
[17/12/2016 21:54:04] Entrando no escopo de MELEE...
[17/12/2016 21:54:04] Value antes de getEffectvineCombat: -116
[17/12/2016 21:54:04] Value depois de getEffectvineCombat: -150.8
[17/12/2016 21:54:04] Dano fica: -603.2
[17/12/2016 21:54:06] Entrando no escopo...
[17/12/2016 21:54:06] Valor da storage: melee
[17/12/2016 21:54:06] Pokemon atacante: Shiny Umbreon
[17/12/2016 21:54:06] Pokemon defensor: Shiny Hypno
[17/12/2016 21:54:06] Entrando no escopo de MELEE...
[17/12/2016 21:54:06] Value antes de getEffectvineCombat: -106
[17/12/2016 21:54:06] Value depois de getEffectvineCombat: -137.8
[17/12/2016 21:54:06] Dano fica: -551.2
[17/12/2016 21:54:06] Entrando no escopo...
[17/12/2016 21:54:06] Valor da storage: melee
[17/12/2016 21:54:06] Pokemon atacante: Shiny Hypno
[17/12/2016 21:54:06] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:54:06] Entrando no escopo de MELEE...
[17/12/2016 21:54:06] Value antes de getEffectvineCombat: -80
[17/12/2016 21:54:06] Value depois de getEffectvineCombat: -80
[17/12/2016 21:54:06] Dano fica: -160
[17/12/2016 21:54:08] Entrando no escopo...
[17/12/2016 21:54:08] Valor da storage: Hypnosis
[17/12/2016 21:54:08] Pokemon atacante: Shiny Hypno
[17/12/2016 21:54:08] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:54:08] Entrando no escopo de MAGIA...
[17/12/2016 21:54:08] Miracle eye não ativado.
[17/12/2016 21:54:08] Multiplier final: 0
[17/12/2016 21:54:08] Value antes da fórmula: 0
[17/12/2016 21:54:08] Value depois da fórmula: 0
[17/12/2016 21:54:08] Value após getEffectvineSpell: 0
[17/12/2016 21:54:08] Entrando no escopo...
[17/12/2016 21:54:08] Valor da storage: melee
[17/12/2016 21:54:08] Pokemon atacante: Shiny Hypno
[17/12/2016 21:54:08] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:54:08] Entrando no escopo de MELEE...
[17/12/2016 21:54:08] Value antes de getEffectvineCombat: -73
[17/12/2016 21:54:08] Value depois de getEffectvineCombat: -73
[17/12/2016 21:54:08] Dano fica: -146
[17/12/2016 21:54:10] Entrando no escopo...
[17/12/2016 21:54:10] Valor da storage: Dream Eater
[17/12/2016 21:54:10] Pokemon atacante: Shiny Hypno
[17/12/2016 21:54:10] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:54:10] Entrando no escopo de MAGIA...
[17/12/2016 21:54:10] Miracle eye não ativado.
[17/12/2016 21:54:10] Multiplier final: 0
[17/12/2016 21:54:10] Value antes da fórmula: -3448
[17/12/2016 21:54:10] Value depois da fórmula: -0
[17/12/2016 21:54:10] Value após getEffectvineSpell: -0
[17/12/2016 21:54:12] Entrando no escopo...
[17/12/2016 21:54:12] Valor da storage: melee
[17/12/2016 21:54:12] Pokemon atacante: Shiny Hypno
[17/12/2016 21:54:12] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:54:12] Entrando no escopo de MELEE...
[17/12/2016 21:54:12] Value antes de getEffectvineCombat: -78
[17/12/2016 21:54:12] Value depois de getEffectvineCombat: -78
[17/12/2016 21:54:12] Dano fica: -156

 

 

Usando com a spell Psybeam

primer dano bateu, parou de bater o siguente tambem nao bateu e despois bateu acho

Spoiler

[17/12/2016 21:58:18] Entrando no escopo...
[17/12/2016 21:58:18] Valor da storage: melee
[17/12/2016 21:58:18] Pokemon atacante: Shiny Umbreon
[17/12/2016 21:58:18] Pokemon defensor: Shiny Hypno
[17/12/2016 21:58:18] Entrando no escopo de MELEE...
[17/12/2016 21:58:18] Value antes de getEffectvineCombat: -101
[17/12/2016 21:58:18] Value depois de getEffectvineCombat: -131.3
[17/12/2016 21:58:18] Dano fica: -525.2
[17/12/2016 21:58:20] Entrando no escopo...
[17/12/2016 21:58:20] Valor da storage: melee
[17/12/2016 21:58:20] Pokemon atacante: Shiny Umbreon
[17/12/2016 21:58:20] Pokemon defensor: Shiny Hypno
[17/12/2016 21:58:20] Entrando no escopo de MELEE...
[17/12/2016 21:58:20] Value antes de getEffectvineCombat: -92
[17/12/2016 21:58:20] Value depois de getEffectvineCombat: -119.6
[17/12/2016 21:58:20] Dano fica: -478.4
[17/12/2016 21:58:20] Entrando no escopo...
[17/12/2016 21:58:20] Valor da storage: Quick Attack
[17/12/2016 21:58:20] Pokemon atacante: Shiny Umbreon
[17/12/2016 21:58:20] Pokemon defensor: Shiny Hypno
[17/12/2016 21:58:20] Entrando no escopo de MAGIA...
[17/12/2016 21:58:20] Miracle eye não ativado.
[17/12/2016 21:58:20] Multiplier final: 1
[17/12/2016 21:58:20] Value antes da fórmula: -1126
[17/12/2016 21:58:20] Value depois da fórmula: -1126
[17/12/2016 21:58:20] Value após getEffectvineSpell: -1126
[17/12/2016 21:58:20] Valor final: -1283.64
[17/12/2016 21:58:21] Entrando no escopo...
[17/12/2016 21:58:21] Valor da storage: Psybeam
[17/12/2016 21:58:21] Pokemon atacante: Shiny Hypno
[17/12/2016 21:58:21] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:58:21] Entrando no escopo de MAGIA...
[17/12/2016 21:58:21] Miracle Eye ativado.
[17/12/2016 21:58:21] multiplier = 0.7
[17/12/2016 21:58:21] Multiplier final: 0.7
[17/12/2016 21:58:21] Value antes da fórmula: -1876
[17/12/2016 21:58:21] Value depois da fórmula: -1313.2
[17/12/2016 21:58:21] Value após getEffectvineSpell: -1313.2
[17/12/2016 21:58:21] Valor final: -1444.52
[17/12/2016 21:58:22] Entrando no escopo...
[17/12/2016 21:58:22] Valor da storage: Miracle Eye
[17/12/2016 21:58:22] Pokemon atacante: Shiny Hypno
[17/12/2016 21:58:22] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:58:22] Entrando no escopo de MAGIA...
[17/12/2016 21:58:22] Miracle Eye ativado.
[17/12/2016 21:58:22] multiplier = 0.7
[17/12/2016 21:58:22] Multiplier final: 0.7
[17/12/2016 21:58:22] Value antes da fórmula: -77
[17/12/2016 21:58:22] Value depois da fórmula: -53.9
[17/12/2016 21:58:22] Value após getEffectvineSpell: -53.9
[17/12/2016 21:58:22] Valor final: -59.29
[17/12/2016 21:58:22] Entrando no escopo...
[17/12/2016 21:58:22] Valor da storage: Psybeam
[17/12/2016 21:58:22] Pokemon atacante: Shiny Hypno
[17/12/2016 21:58:22] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:58:22] Entrando no escopo de MAGIA...
[17/12/2016 21:58:22] Miracle eye não ativado.
[17/12/2016 21:58:22] Multiplier final: 0
[17/12/2016 21:58:22] Value antes da fórmula: -1500
[17/12/2016 21:58:22] Value depois da fórmula: -0
[17/12/2016 21:58:22] Value após getEffectvineSpell: -0
[17/12/2016 21:58:23] Entrando no escopo...
[17/12/2016 21:58:23] Valor da storage: melee
[17/12/2016 21:58:23] Pokemon atacante: Shiny Umbreon
[17/12/2016 21:58:23] Pokemon defensor: Shiny Hypno
[17/12/2016 21:58:23] Entrando no escopo de MELEE...
[17/12/2016 21:58:23] Value antes de getEffectvineCombat: -109
[17/12/2016 21:58:23] Value depois de getEffectvineCombat: -141.7
[17/12/2016 21:58:23] Dano fica: -566.8
[17/12/2016 21:58:24] Entrando no escopo...
[17/12/2016 21:58:24] Valor da storage: Miracle Eye
[17/12/2016 21:58:24] Pokemon atacante: Shiny Hypno
[17/12/2016 21:58:24] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:58:24] Entrando no escopo de MAGIA...
[17/12/2016 21:58:24] Miracle Eye ativado.
[17/12/2016 21:58:24] multiplier = 0.7
[17/12/2016 21:58:24] Multiplier final: 0.7
[17/12/2016 21:58:24] Value antes da fórmula: -74
[17/12/2016 21:58:24] Value depois da fórmula: -51.8
[17/12/2016 21:58:24] Value após getEffectvineSpell: -51.8
[17/12/2016 21:58:24] Valor final: -56.98
[17/12/2016 21:58:24] Entrando no escopo...
[17/12/2016 21:58:24] Valor da storage: Psybeam
[17/12/2016 21:58:24] Pokemon atacante: Shiny Hypno
[17/12/2016 21:58:24] Pokemon defensor: Shiny Umbreon
[17/12/2016 21:58:24] Entrando no escopo de MAGIA...
[17/12/2016 21:58:24] Miracle eye não ativado.
[17/12/2016 21:58:24] Multiplier final: 0
[17/12/2016 21:58:24] Value antes da fórmula: -1752
[17/12/2016 21:58:24] Value depois da fórmula: -0
[17/12/2016 21:58:24] Value após getEffectvineSpell: -0
[17/12/2016 21:58:25] Entrando no escopo...
[17/12/2016 21:58:25] Valor da storage: melee
[17/12/2016 21:58:25] Pokemon atacante: Shiny Umbreon
[17/12/2016 21:58:25] Pokemon defensor: Shiny Hypno
[17/12/2016 21:58:25] Entrando no escopo de MELEE...
[17/12/2016 21:58:25] Value antes de getEffectvineCombat: -93
[17/12/2016 21:58:25] Value depois de getEffectvineCombat: -120.9
[17/12/2016 21:58:25] Dano fica: -483.6

 

 

agora Psywave: primer ataque bateu, segundo tb, 3º tb

4,5,6 nao bateram nele

Spoiler

[17/12/2016 22:02:16] Entrando no escopo...
[17/12/2016 22:02:16] Valor da storage: melee
[17/12/2016 22:02:16] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:02:16] Pokemon defensor: Shiny Hypno
[17/12/2016 22:02:16] Entrando no escopo de MELEE...
[17/12/2016 22:02:16] Value antes de getEffectvineCombat: -104
[17/12/2016 22:02:16] Value depois de getEffectvineCombat: -135.2
[17/12/2016 22:02:16] Dano fica: -540.8
[17/12/2016 22:02:16] Entrando no escopo...
[17/12/2016 22:02:16] Valor da storage: Psywave
[17/12/2016 22:02:16] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:16] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:16] Entrando no escopo de MAGIA...
[17/12/2016 22:02:16] Miracle Eye ativado.
[17/12/2016 22:02:16] multiplier = 0.7
[17/12/2016 22:02:16] Multiplier final: 0.7
[17/12/2016 22:02:16] Value antes da fórmula: -1805
[17/12/2016 22:02:16] Value depois da fórmula: -1263.5
[17/12/2016 22:02:16] Value após getEffectvineSpell: -1263.5
[17/12/2016 22:02:16] Valor final: -1389.85
[17/12/2016 22:02:17] Entrando no escopo...
[17/12/2016 22:02:17] Valor da storage: Psywave
[17/12/2016 22:02:17] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:17] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:17] Entrando no escopo de MAGIA...
[17/12/2016 22:02:17] Miracle eye não ativado.
[17/12/2016 22:02:17] Multiplier final: 0
[17/12/2016 22:02:17] Value antes da fórmula: -74
[17/12/2016 22:02:17] Value depois da fórmula: -0
[17/12/2016 22:02:17] Value após getEffectvineSpell: -0
[17/12/2016 22:02:18] Entrando no escopo...
[17/12/2016 22:02:18] Valor da storage: Psywave
[17/12/2016 22:02:18] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:18] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:18] Entrando no escopo de MAGIA...
[17/12/2016 22:02:18] Miracle Eye ativado.
[17/12/2016 22:02:18] multiplier = 0.7
[17/12/2016 22:02:18] Multiplier final: 0.7
[17/12/2016 22:02:18] Value antes da fórmula: -1563
[17/12/2016 22:02:18] Value depois da fórmula: -1094.1
[17/12/2016 22:02:18] Value após getEffectvineSpell: -1094.1
[17/12/2016 22:02:18] Valor final: -1203.51
[17/12/2016 22:02:18] Entrando no escopo...
[17/12/2016 22:02:18] Valor da storage: melee
[17/12/2016 22:02:18] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:02:18] Pokemon defensor: Shiny Hypno
[17/12/2016 22:02:18] Entrando no escopo de MELEE...
[17/12/2016 22:02:18] Value antes de getEffectvineCombat: -118
[17/12/2016 22:02:18] Value depois de getEffectvineCombat: -153.4
[17/12/2016 22:02:18] Dano fica: -613.6
[17/12/2016 22:02:19] Entrando no escopo...
[17/12/2016 22:02:19] Valor da storage: Psywave
[17/12/2016 22:02:19] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:19] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:19] Entrando no escopo de MAGIA...
[17/12/2016 22:02:19] Miracle eye não ativado.
[17/12/2016 22:02:19] Multiplier final: 0
[17/12/2016 22:02:19] Value antes da fórmula: -72
[17/12/2016 22:02:19] Value depois da fórmula: -0
[17/12/2016 22:02:19] Value após getEffectvineSpell: -0
[17/12/2016 22:02:19] Entrando no escopo...
[17/12/2016 22:02:19] Valor da storage: Quick Attack
[17/12/2016 22:02:19] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:02:19] Pokemon defensor: Shiny Hypno
[17/12/2016 22:02:19] Entrando no escopo de MAGIA...
[17/12/2016 22:02:19] Miracle eye não ativado.
[17/12/2016 22:02:19] Multiplier final: 1
[17/12/2016 22:02:19] Value antes da fórmula: -1212
[17/12/2016 22:02:19] Value depois da fórmula: -1212
[17/12/2016 22:02:19] Value após getEffectvineSpell: -1212
[17/12/2016 22:02:19] Valor final: -1381.68
[17/12/2016 22:02:20] Entrando no escopo...
[17/12/2016 22:02:20] Valor da storage: Psywave
[17/12/2016 22:02:20] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:20] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:20] Entrando no escopo de MAGIA...
[17/12/2016 22:02:20] Miracle Eye ativado.
[17/12/2016 22:02:20] multiplier = 0.7
[17/12/2016 22:02:20] Multiplier final: 0.7
[17/12/2016 22:02:20] Value antes da fórmula: -1809
[17/12/2016 22:02:20] Value depois da fórmula: -1266.3
[17/12/2016 22:02:20] Value após getEffectvineSpell: -1266.3
[17/12/2016 22:02:20] Valor final: -1392.93
[17/12/2016 22:02:20] Entrando no escopo...
[17/12/2016 22:02:20] Valor da storage: melee
[17/12/2016 22:02:20] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:02:20] Pokemon defensor: Shiny Hypno
[17/12/2016 22:02:20] Entrando no escopo de MELEE...
[17/12/2016 22:02:20] Value antes de getEffectvineCombat: -79
[17/12/2016 22:02:20] Value depois de getEffectvineCombat: -102.7
[17/12/2016 22:02:20] Dano fica: -410.8
[17/12/2016 22:02:21] Entrando no escopo...
[17/12/2016 22:02:21] Valor da storage: Psywave
[17/12/2016 22:02:21] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:21] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:21] Entrando no escopo de MAGIA...
[17/12/2016 22:02:21] Miracle eye não ativado.
[17/12/2016 22:02:21] Multiplier final: 0
[17/12/2016 22:02:21] Value antes da fórmula: -1708
[17/12/2016 22:02:21] Value depois da fórmula: -0
[17/12/2016 22:02:21] Value após getEffectvineSpell: -0
[17/12/2016 22:02:22] Entrando no escopo...
[17/12/2016 22:02:22] Valor da storage: melee
[17/12/2016 22:02:22] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:02:22] Pokemon defensor: Shiny Hypno
[17/12/2016 22:02:22] Entrando no escopo de MELEE...
[17/12/2016 22:02:22] Value antes de getEffectvineCombat: -94
[17/12/2016 22:02:22] Value depois de getEffectvineCombat: -122.2
[17/12/2016 22:02:22] Dano fica: -488.8
[17/12/2016 22:02:23] Entrando no escopo...
[17/12/2016 22:02:23] Valor da storage: Psywave
[17/12/2016 22:02:23] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:23] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:23] Entrando no escopo de MAGIA...
[17/12/2016 22:02:23] Miracle eye não ativado.
[17/12/2016 22:02:23] Multiplier final: 0
[17/12/2016 22:02:23] Value antes da fórmula: -1726
[17/12/2016 22:02:23] Value depois da fórmula: -0
[17/12/2016 22:02:23] Value após getEffectvineSpell: -0
[17/12/2016 22:02:23] Entrando no escopo...
[17/12/2016 22:02:23] Valor da storage: Psywave
[17/12/2016 22:02:23] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:23] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:23] Entrando no escopo de MAGIA...
[17/12/2016 22:02:23] Miracle eye não ativado.
[17/12/2016 22:02:23] Multiplier final: 0
[17/12/2016 22:02:23] Value antes da fórmula: -79
[17/12/2016 22:02:23] Value depois da fórmula: -0
[17/12/2016 22:02:23] Value após getEffectvineSpell: -0
[17/12/2016 22:02:24] Entrando no escopo...
[17/12/2016 22:02:24] Valor da storage: Psywave
[17/12/2016 22:02:24] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:24] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:24] Entrando no escopo de MAGIA...
[17/12/2016 22:02:24] Miracle eye não ativado.
[17/12/2016 22:02:24] Multiplier final: 0
[17/12/2016 22:02:24] Value antes da fórmula: -1741
[17/12/2016 22:02:24] Value depois da fórmula: -0
[17/12/2016 22:02:24] Value após getEffectvineSpell: -0
[17/12/2016 22:02:25] Entrando no escopo...
[17/12/2016 22:02:25] Valor da storage: melee
[17/12/2016 22:02:25] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:02:25] Pokemon defensor: Shiny Hypno
[17/12/2016 22:02:25] Entrando no escopo de MELEE...
[17/12/2016 22:02:25] Value antes de getEffectvineCombat: -122
[17/12/2016 22:02:25] Value depois de getEffectvineCombat: -158.6
[17/12/2016 22:02:25] Dano fica: -634.4
[17/12/2016 22:02:25] Entrando no escopo...
[17/12/2016 22:02:25] Valor da storage: Psywave
[17/12/2016 22:02:25] Pokemon atacante: Shiny Hypno
[17/12/2016 22:02:25] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:02:25] Entrando no escopo de MAGIA...
[17/12/2016 22:02:25] Miracle eye não ativado.
[17/12/2016 22:02:25] Multiplier final: 0
[17/12/2016 22:02:25] Value antes da fórmula: -91
[17/12/2016 22:02:25] Value depois da fórmula: -0
[17/12/2016 22:02:25] Value após getEffectvineSpell: -0

 

 

agora confusion

1,2 funfaram resto nemhum funfou

Spoiler


[17/12/2016 22:04:24] Entrando no escopo...
[17/12/2016 22:04:24] Valor da storage: melee
[17/12/2016 22:04:24] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:24] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:24] Entrando no escopo de MELEE...
[17/12/2016 22:04:24] Value antes de getEffectvineCombat: -70
[17/12/2016 22:04:24] Value depois de getEffectvineCombat: -70
[17/12/2016 22:04:24] Dano fica: -140
[17/12/2016 22:04:24] Entrando no escopo...
[17/12/2016 22:04:24] Valor da storage: melee
[17/12/2016 22:04:24] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:04:24] Pokemon defensor: Shiny Hypno
[17/12/2016 22:04:24] Entrando no escopo de MELEE...
[17/12/2016 22:04:24] Value antes de getEffectvineCombat: -103
[17/12/2016 22:04:24] Value depois de getEffectvineCombat: -133.9
[17/12/2016 22:04:24] Dano fica: -535.6
[17/12/2016 22:04:25] Entrando no escopo...
[17/12/2016 22:04:25] Valor da storage: Quick Attack
[17/12/2016 22:04:25] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:04:25] Pokemon defensor: Shiny Hypno
[17/12/2016 22:04:25] Entrando no escopo de MAGIA...
[17/12/2016 22:04:25] Miracle eye não ativado.
[17/12/2016 22:04:25] Multiplier final: 1
[17/12/2016 22:04:25] Value antes da fórmula: -1157
[17/12/2016 22:04:25] Value depois da fórmula: -1157
[17/12/2016 22:04:25] Value após getEffectvineSpell: -1157
[17/12/2016 22:04:25] Valor final: -1318.98
[17/12/2016 22:04:26] Entrando no escopo...
[17/12/2016 22:04:26] Valor da storage: Confusion
[17/12/2016 22:04:26] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:26] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:26] Entrando no escopo de MAGIA...
[17/12/2016 22:04:26] Miracle Eye ativado.
[17/12/2016 22:04:26] multiplier = 0.7
[17/12/2016 22:04:26] Multiplier final: 0.7
[17/12/2016 22:04:26] Value antes da fórmula: -1246
[17/12/2016 22:04:26] Value depois da fórmula: -872.2
[17/12/2016 22:04:26] Value após getEffectvineSpell: -872.2
[17/12/2016 22:04:26] Valor final: -959.42
[17/12/2016 22:04:26] Entrando no escopo...
[17/12/2016 22:04:26] Valor da storage: Confusion
[17/12/2016 22:04:26] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:26] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:26] Entrando no escopo de MAGIA...
[17/12/2016 22:04:26] Miracle eye não ativado.
[17/12/2016 22:04:26] Multiplier final: 0
[17/12/2016 22:04:26] Value antes da fórmula: -91
[17/12/2016 22:04:26] Value depois da fórmula: -0
[17/12/2016 22:04:26] Value após getEffectvineSpell: -0
[17/12/2016 22:04:26] Entrando no escopo...
[17/12/2016 22:04:26] Valor da storage: melee
[17/12/2016 22:04:26] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:04:26] Pokemon defensor: Shiny Hypno
[17/12/2016 22:04:26] Entrando no escopo de MELEE...
[17/12/2016 22:04:26] Value antes de getEffectvineCombat: -101
[17/12/2016 22:04:26] Value depois de getEffectvineCombat: -131.3
[17/12/2016 22:04:26] Dano fica: -525.2
[17/12/2016 22:04:28] Entrando no escopo...
[17/12/2016 22:04:28] Valor da storage: Confusion
[17/12/2016 22:04:28] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:28] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:28] Entrando no escopo de MAGIA...
[17/12/2016 22:04:28] Miracle Eye ativado.
[17/12/2016 22:04:28] multiplier = 0.7
[17/12/2016 22:04:28] Multiplier final: 0.7
[17/12/2016 22:04:28] Value antes da fórmula: -1207
[17/12/2016 22:04:28] Value depois da fórmula: -844.9
[17/12/2016 22:04:28] Value após getEffectvineSpell: -844.9
[17/12/2016 22:04:28] Valor final: -929.39
[17/12/2016 22:04:28] Entrando no escopo...
[17/12/2016 22:04:28] Valor da storage: melee
[17/12/2016 22:04:28] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:04:28] Pokemon defensor: Shiny Hypno
[17/12/2016 22:04:28] Entrando no escopo de MELEE...
[17/12/2016 22:04:28] Value antes de getEffectvineCombat: -104
[17/12/2016 22:04:28] Value depois de getEffectvineCombat: -135.2
[17/12/2016 22:04:28] Dano fica: -540.8
[17/12/2016 22:04:28] Entrando no escopo...
[17/12/2016 22:04:28] Valor da storage: Quick Attack
[17/12/2016 22:04:28] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:04:28] Pokemon defensor: Shiny Hypno
[17/12/2016 22:04:28] Entrando no escopo de MAGIA...
[17/12/2016 22:04:28] Miracle eye não ativado.
[17/12/2016 22:04:28] Multiplier final: 1
[17/12/2016 22:04:28] Value antes da fórmula: -1149
[17/12/2016 22:04:28] Value depois da fórmula: -1149
[17/12/2016 22:04:28] Value após getEffectvineSpell: -1149
[17/12/2016 22:04:28] Valor final: -1309.86
[17/12/2016 22:04:29] Entrando no escopo...
[17/12/2016 22:04:29] Valor da storage: Confusion
[17/12/2016 22:04:29] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:29] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:29] Entrando no escopo de MAGIA...
[17/12/2016 22:04:29] Miracle eye não ativado.
[17/12/2016 22:04:29] Multiplier final: 0
[17/12/2016 22:04:29] Value antes da fórmula: -1207
[17/12/2016 22:04:29] Value depois da fórmula: -0
[17/12/2016 22:04:29] Value após getEffectvineSpell: -0
[17/12/2016 22:04:30] Entrando no escopo...
[17/12/2016 22:04:30] Valor da storage: Miracle Eye
[17/12/2016 22:04:30] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:30] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:30] Entrando no escopo de MAGIA...
[17/12/2016 22:04:30] Miracle Eye ativado.
[17/12/2016 22:04:30] multiplier = 0.7
[17/12/2016 22:04:30] Multiplier final: 0.7
[17/12/2016 22:04:30] Value antes da fórmula: -100
[17/12/2016 22:04:30] Value depois da fórmula: -70
[17/12/2016 22:04:30] Value após getEffectvineSpell: -70
[17/12/2016 22:04:30] Valor final: -77
[17/12/2016 22:04:30] > Broadcasted message: "Loots estao caindo apenas na OUTLAND SOUTH pois e a unica q o loot foi balancado no momento, iremos colocar loot em td pouco a pouco esperem...".
[17/12/2016 22:04:30] Entrando no escopo...
[17/12/2016 22:04:30] Valor da storage: Confusion
[17/12/2016 22:04:30] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:30] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:30] Entrando no escopo de MAGIA...
[17/12/2016 22:04:30] Miracle eye não ativado.
[17/12/2016 22:04:30] Multiplier final: 0
[17/12/2016 22:04:30] Value antes da fórmula: -1124
[17/12/2016 22:04:30] Value depois da fórmula: -0
[17/12/2016 22:04:30] Value após getEffectvineSpell: -0
[17/12/2016 22:04:30] Entrando no escopo...
[17/12/2016 22:04:30] Valor da storage: melee
[17/12/2016 22:04:30] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:04:30] Pokemon defensor: Shiny Hypno
[17/12/2016 22:04:30] Entrando no escopo de MELEE...
[17/12/2016 22:04:30] Value antes de getEffectvineCombat: -96
[17/12/2016 22:04:30] Value depois de getEffectvineCombat: -124.8
[17/12/2016 22:04:30] Dano fica: -499.2
[17/12/2016 22:04:31] Entrando no escopo...
[17/12/2016 22:04:31] Valor da storage: Confusion
[17/12/2016 22:04:31] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:31] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:31] Entrando no escopo de MAGIA...
[17/12/2016 22:04:31] Miracle eye não ativado.
[17/12/2016 22:04:31] Multiplier final: 0
[17/12/2016 22:04:31] Value antes da fórmula: -1000
[17/12/2016 22:04:31] Value depois da fórmula: -0
[17/12/2016 22:04:31] Value após getEffectvineSpell: -0
[17/12/2016 22:04:32] Entrando no escopo...
[17/12/2016 22:04:32] Valor da storage: Miracle Eye
[17/12/2016 22:04:32] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:32] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:32] Entrando no escopo de MAGIA...
[17/12/2016 22:04:32] Miracle Eye ativado.
[17/12/2016 22:04:32] multiplier = 0.7
[17/12/2016 22:04:32] Multiplier final: 0.7
[17/12/2016 22:04:32] Value antes da fórmula: -59
[17/12/2016 22:04:32] Value depois da fórmula: -41.3
[17/12/2016 22:04:32] Value após getEffectvineSpell: -41.3
[17/12/2016 22:04:32] Valor final: -45.43
[17/12/2016 22:04:32] Entrando no escopo...
[17/12/2016 22:04:32] Valor da storage: Confusion
[17/12/2016 22:04:32] Pokemon atacante: Shiny Hypno
[17/12/2016 22:04:32] Pokemon defensor: Shiny Umbreon
[17/12/2016 22:04:32] Entrando no escopo de MAGIA...
[17/12/2016 22:04:32] Miracle eye não ativado.
[17/12/2016 22:04:32] Multiplier final: 0
[17/12/2016 22:04:32] Value antes da fórmula: -1336
[17/12/2016 22:04:32] Value depois da fórmula: -0
[17/12/2016 22:04:32] Value após getEffectvineSpell: -0
[17/12/2016 22:04:32] Entrando no escopo...
[17/12/2016 22:04:32] Valor da storage: melee
[17/12/2016 22:04:32] Pokemon atacante: Shiny Umbreon
[17/12/2016 22:04:32] Pokemon defensor: Shiny Hypno
[17/12/2016 22:04:32] Entrando no escopo de MELEE...
[17/12/2016 22:04:32] Value antes de getEffectvineCombat: -78
[17/12/2016 22:04:32] Value depois de getEffectvineCombat: -101.4
[17/12/2016 22:04:32] Dano fica: -405.6

 

em td o miracle eye foi ativado

 

em quanto o offense td em pda enquanto o offense acho mt diferente do DxP x.x

ja tentei comparar tds as offenses mas nao achei mt parecido

 

dxp a unica estranha q vi foi esse * 100

Spoiler

		if (combat == 128 or combat == 1) and spellNameFromAttacker == -1  then
			value = -(getOffense(attacker) * 100)
		else
			if not typeTable[getMoveType(getCreatureName(attacker), spellNameFromAttacker)] then
				color = 180
			else
			    color = typeTable[getMoveType(getCreatureName(attacker), spellNameFromAttacker)].color or 180
			end
		end

 

pda:

Spoiler

   if not pokes[getCreatureName(cid)] and damageCombat == COMBAT_PHYSICALDAMAGE then
      valor = getOffense(attacker) * playerDamageReduction
      doCreatureAddHealth(cid, -math.abs(valor), 3, races[7].cor)                       --alterado v1.6 dano nos npcs
      return false
   elseif not pokes[getCreatureName(cid)] and damageCombat ~= COMBAT_PHYSICALDAMAGE then
      doCreatureAddHealth(cid, -math.abs(valor), 3, combats[damageCombat].cor)
      return false
   end

 

 

Link para o comentário
Compartilhar em outros sites

Aqui persiste o error de voltar para melee en spells que tem "addEvent" 

Spoiler

[19/12/2016 04:11:10] Entrando no escopo...
[19/12/2016 04:11:10] Valor da storage: Earthquake
[19/12/2016 04:11:10] Pokemon atacante: Shiny Onix
[19/12/2016 04:11:10] Pokemon defensor: Golem
[19/12/2016 04:11:10] Entrando no escopo de MAGIA...
[19/12/2016 04:11:10] Valor final: -980.1
[19/12/2016 04:11:10] Entrando no escopo...
[19/12/2016 04:11:10] Valor da storage: melee
[19/12/2016 04:11:10] Pokemon atacante: Shiny Onix
[19/12/2016 04:11:10] Pokemon defensor: Golem
[19/12/2016 04:11:10] Entrando no escopo de MELEE...
[19/12/2016 04:11:10] Value antes de getEffectvineCombat: -822
[19/12/2016 04:11:10] Value depois de getEffectvineCombat: -822
[19/12/2016 04:11:10] Dano fica: -1644
[19/12/2016 04:11:11] Entrando no escopo...
[19/12/2016 04:11:11] Valor da storage: melee
[19/12/2016 04:11:11] Pokemon atacante: Shiny Onix
[19/12/2016 04:11:11] Pokemon defensor: Golem
[19/12/2016 04:11:11] Entrando no escopo de MELEE...
[19/12/2016 04:11:11] Value antes de getEffectvineCombat: -992
[19/12/2016 04:11:11] Value depois de getEffectvineCombat: -992
[19/12/2016 04:11:11] Dano fica: -1984
[19/12/2016 04:11:11] Entrando no escopo...
[19/12/2016 04:11:11] Valor da storage: melee
[19/12/2016 04:11:11] Pokemon atacante: Shiny Onix
[19/12/2016 04:11:11] Pokemon defensor: Golem
[19/12/2016 04:11:11] Entrando no escopo de MELEE...
[19/12/2016 04:11:11] Value antes de getEffectvineCombat: -300
[19/12/2016 04:11:11] Value depois de getEffectvineCombat: -300
[19/12/2016 04:11:11] Dano fica: -600
[19/12/2016 04:11:12] Entrando no escopo...
[19/12/2016 04:11:12] Valor da storage: Rock Throw
[19/12/2016 04:11:12] Pokemon atacante: Golem
[19/12/2016 04:11:12] Pokemon defensor: Shiny Onix
[19/12/2016 04:11:12] Entrando no escopo de MAGIA...
[19/12/2016 04:11:12] Valor final: -515.97
[19/12/2016 04:11:12] Entrando no escopo...
[19/12/2016 04:11:12] Valor da storage: melee
[19/12/2016 04:11:12] Pokemon atacante: Shiny Onix
[19/12/2016 04:11:12] Pokemon defensor: Golem
[19/12/2016 04:11:12] Entrando no escopo de MELEE...
[19/12/2016 04:11:12] Value antes de getEffectvineCombat: -1229
[19/12/2016 04:11:12] Value depois de getEffectvineCombat: -1229
[19/12/2016 04:11:12] Dano fica: -2458

 

 

Meu Statschange.lua

Spoiler

local damages = {GROUNDDAMAGE, ELECTRICDAMAGE, ROCKDAMAGE, FLYDAMAGE, BUGDAMAGE, FIGHTINGDAMAGE, DRAGONDAMAGE, POISONDAMAGE, DARKDAMAGE, STEELDAMAGE}
local fixdmgs = {PSYCHICDAMAGE, COMBAT_PHYSICALDAMAGE, GRASSDAMAGE, FIREDAMAGE, WATERDAMAGE, ICEDAMAGE, NORMALDAMAGE, GHOSTDAMAGE}
local ignored = {POISONEDDAMAGE, BURNEDDAMAGE}                --alterado v1.6
local cannotkill = {BURNEDDAMAGE, POISONEDDAMAGE}

function onStatsChange(cid, attacker, type, combat, value)
if isWatchingTv(cid) then return false end -- TV Block
--------------------- healarea ---------------------
if type == STATSCHANGE_HEALTHGAIN then
    if cid == attacker then
    return true
    end
    if isSummon(cid) and isSummon(attacker) and canAttackOther(cid, attacker) == "Cant" then
    return false
    end
    if isWild(cid) and isWild(attacker) then -- monstros se curarem
    return true 
    end
return true
end
--------------------- healarea ---------------------
if isSleeping(attacker) then return false end
if isPlayer(cid) and isSummon(attacker) and canAttackOther(cid, attacker) == "Cant" then return false end
if getPlayerStorageValue(cid, 9658783) == 1 then return false end
if combat == FLYSYSTEMDAMAGE then return false end
if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TV
if (isPlayer(cid) and #getCreatureSummons(cid) >= 1 and not getTileInfo(getThingPos(getCreatureSummons(cid)[1])).protection) or isPlayer(attacker) then return false end -- seguranca do player nao atacar
if isGod(cid)  then return false end -- god nao morrer o.O
if isWild(cid) and isWild(attacker) then return false end -- monstro nao atacar monstro, mas deixar pokemons do shared team baterem
if getTileInfo(getThingPos(cid)).protection then return false end
-- duel system e outros
if isSummon(cid) and isSummon(attacker) then
    local p1, p2 = getCreatureMaster(cid), getCreatureMaster(attacker)
    if not CanAttackerInDuel(p1, p2) then
       return false
    end
end
if isSummon(attacker) and isPlayer(cid) then
    return false -- quandotiver pvp colocar storage do pvp aqui
end

if not (isCreature(attacker)) then return true end
local raceCombat = typeTable[getElementByCombat(combat)] 
local spellNameFromAttacker = getPlayerStorageValue(attacker, 21102)

    -- player morte e ataques
    if isPlayer(cid) and (#getCreatureSummons(cid) <= 0 or #getCreatureSummons(cid) >= 1 and getTileInfo(getThingPos(getCreatureSummons(cid)[1])).protection) then
    
        local color = 180
        if (combat == 128 or combat == 1) and spellNameFromAttacker == -1  then
            value = -(getOffense(attacker) * 100)
        else
            if not typeTable[getMoveType(getCreatureName(attacker), spellNameFromAttacker)] then
                color = 180
            else
                color = typeTable[getMoveType(getCreatureName(attacker), spellNameFromAttacker)].color or 180
            end
        end


        if value >= getCreatureHealth(cid) then
            value = getCreatureHealth(cid)
        end
        
        value = math.ceil(value)
    
       if (value*-1) >= getCreatureHealth(cid) then
          doKillPlayer(cid, attacker, (value*-1))
          return false
       end
       doSendAnimatedText(getThingPosWithDebug(cid), (value * -1), color) 
       doCreatureAddHealth(cid, value)
       setPlayerStorageValue(attacker, 21102, -1) -- reseta a spellName do pokemon atacante
       return false
    end
    -- player morte e ataques


if not isPlayer(cid) then
-- valores do atacante


    if isPokePassive(cid) and isSummon(attacker) then
       doSetPokemonAgressiveToPlayer(cid, getCreatureMaster(attacker))
    end
    
    local myName = doCorrectString(getCreatureName(cid))
    if isInArray(specialabilities["evasion"], myName) and isSummon(cid) then 
       local target = cid
       if getCreatureTarget(getCreatureMaster(cid)) == attacker then 
           if math.random(1, 100) <= passivesChances["Evasion"][myName] then                                                                                      
              if isCreature(attacker) then  --alterado v1.6 
                 doSendMagicEffect(getThingPosWithDebug(target), 211)
                 doSendAnimatedText(getThingPosWithDebug(target), "TOO BAD", 215)                                 
                 doTeleportThing(target, getClosestFreeTile(target, getThingPosWithDebug(attacker)), false)
                 doSendMagicEffect(getThingPosWithDebug(target), 211)
                 doFaceCreature(target, getThingPosWithDebug(attacker)) 
                 return false    
              end
            end   
        end
    end

    ---- cor do dano
    
        --[[if (combat == 128 or combat == 1) and spellNameFromAttacker == -1  then
            
        else
            raceCombat = typeTable[getMoveType(getCreatureName(attacker), spellNameFromAttacker)]
        end]] -- alterado
        
        raceCombat = typeTable[getPokemonType(attacker).type1]
    
    ---- cor do dano
    local critical, criticalValue = false, 0
    local returnDamage = false

    ------------- Helds 
    if isSummon(cid) then
        local heldx = getItemAttribute(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "xHeldItem")
        if heldx then
        local heldName, heldTier = string.explode(heldx, "|")[1], string.explode(heldx, "|")[2]
        
              if heldName == "X-Block" and isSummon(cid) then          -- bloquear alguns ataques
                local chance = heldBlockChance[tonumber(heldTier)]
                if (math.random(1, 100) <= chance) then
                    doSendAnimatedText(getThingPos(cid), "BLOCKED", 215)
                end
              end
              
              if heldName == "X-Return" and isSummon(cid) then          -- bloquear alguns ataques
                local chance = heldReturn[tonumber(heldTier)]
                if (math.random(1, 100) <= chance) then
                    returnDamage = true
                    returnDamageValue = heldReturn[tonumber(heldTier)]
                end
              end
              
        end
    end
    
    if isSummon(attacker) then
        local heldx = getItemAttribute(getPlayerSlotItem(getCreatureMaster(attacker), 8).uid, "xHeldItem")
        if heldx then
        local heldName, heldTier = string.explode(heldx, "|")[1], string.explode(heldx, "|")[2]
        
              if heldName == "X-Critical" then -- dar critico nos ataques
                local chance = heldCriticalChance[tonumber(heldTier)]
                if (math.random(1, 100) <= chance) then
                    critical = true
                    criticalValue = math.random(50, 100)
                end
              end
              
        end
    end
    ------------- Helds 
    
    if isReflect(attacker) then
        local valueReflected = getPlayerStorageValue(attacker, 21105)
        if valueReflected > 0 then
           removeReflect(attacker)
           value = valueReflected
           doCreatureAddHealth(cid, -math.floor(value))
           doSendAnimatedText(getThingPos(cid), (value == 0 and "" or value), COLOR_GRASS)
           if isSummon(cid) then doSendLifePokeToOTC(getCreatureMaster(cid)) end
            if value >= getCreatureHealth(cid) then
                if isSummon(cid) then
                    if isInDuel(getCreatureMaster(cid)) then
                       doRemoveCountPokemon(getCreatureMaster(cid))
                    end
                end
            doKillWildPoke(attacker, cid)
            return false
            end
           return false
        end
    end
    
    ------------------------------------POTIONS-------------------------------------------
        if isSummon(cid) then
           if getPlayerStorageValue(cid, 173) >= 1 then
             setPlayerStorageValue(cid, 173, -1)  --alterado v1.6
             doSendAnimatedText(getThingPos(cid), "LOST HEAL", 144)
           end
        end
        
    local boost_def, boost_attk = (0.7 * getPokemonBoost(cid)) / 100, (0.5 * getPokemonBoost(attacker)) / 100
    
print("Entrando no escopo...")
print("Valor da storage: "..(tonumber(spellNameFromAttacker) and "melee" or spellNameFromAttacker))
print("Pokemon atacante: "..getCreatureName(attacker))
print("Pokemon defensor: "..getCreatureName(cid))
if(combat == 128 or combat == 1) and getPlayerStorageValue(attacker, 21102) == -1 then -- ataque basico
    print("Entrando no escopo de MELEE...")
    doSendMagicEffect(getThingPos(cid), 3)
    print("Value antes de getEffectvineCombat: "..value)
    value = getEffectvineCombat(cid, attacker, value)
    print("Value depois de getEffectvineCombat: "..value)
    if value == 0 then 
        return false
    else
        value = value * getOffense(attacker) -- buff ataque system 
        local name = doCorrectString(getCreatureName(attacker))
        if pokes[name] and pokes[name].level <= 5 and value ~= 0 then 
            value = -math.random(pokes[name].offense, pokes[name].offense+5)
        end
        print("Dano fica: "..value)
    end
else -- magia
    print("Entrando no escopo de MAGIA...")
    value = getEffectvineSpell(attacker, spellNameFromAttacker, value, cid) -- checagem de efetividades de magia
if value == 0 then 
    setPlayerStorageValue(attacker, 21102, -1)
    return false
else
    value = value * (1 + getSpecialAttack(attacker) / 100)
end
    print("Valor final: "..value)
end    
    
        if spellNameFromAttacker ~= -1 and value == 0 then value = -doForceDanoSpeel(attacker, spellNameFromAttacker) end
        if value == 0 then value = -getEffectvineCombat(cid, attacker, getOffense(attacker)) end -- rever isto.. colocar dano base do xml
    
        value = value - (value * (getDefense(cid) / 100)) -- buff deff system, defendendo por %
        
        -------- boost system
        value = (value) + (boost_def * (value * -1))
        value = (value - getMasterLevel(attacker)) - (boost_attk * (value * -1))
        -------- boost system
        
        value = math.ceil(value * -1)
        if value >= getCreatureHealth(cid) then value = getCreatureHealth(cid) end
        
        if value < 0 then 
           value = value * -1
        end
        
    
        -------- xp por dano
        if isSummon(attacker) and not isSummon(cid) then
            addPlayerDano(cid, getCreatureMaster(attacker), value)
        end
        -------- xp por dano
        
        if critical then -- X-Critical system
            value = value * 2 + criticalValue    
            doSendAnimatedText(getThingPos(cid), (value == 0 and "" or value) .. "K", COLOR_BURN)
        else
            doSendAnimatedText(getThingPos(cid), (value == 0 and "" or value), raceCombat.color)
        end
        
        if returnDamage then
            local valueToReturn = math.ceil(value * (returnDamageValue / 100))
            if valueToReturn > getCreatureHealth(attacker) then 
                valueToReturn = getCreatureHealth(attacker) -1
            end
            
            if valueToReturn > 1 then
                value = value - valueToReturn
                doSendAnimatedText(getThingPos(attacker), (valueToReturn == 0 and "" or valueToReturn), 31)
                doSendMagicEffect(getThingPos(attacker), 3)
                doCreatureAddHealth(attacker, -valueToReturn)
            end
        end
        
        local spellName = getPlayerStorageValue(attacker, 21102)
        setPlayerStorageValue(attacker, 21102, -1) -- reseta a spellName do pokemon atacante
        
        if(isReflect(cid))then -- reflect system igual GBA
           if spellName ~= -1 then 
               if not isInArray({"Team Claw", "Team Slice"}, spellName) then
                  doSendMagicEffect(getThingPosWithDebug(cid), 135)
                  doSendAnimatedText(getThingPosWithDebug(cid), "REFLECT", COLOR_GRASS)
                  addEvent(docastspell, 100, cid, spellName)
                  if getCreatureName(cid) == "Wobbuffet" then
                     doRemoveCondition(cid, CONDITION_OUTFIT)    
                  end
                  setPlayerStorageValue(cid, 21099, -1)                    --alterado v1.6
                  setPlayerStorageValue(cid, 21100, 1)
                  setPlayerStorageValue(cid, 21101, attacker)
                  setPlayerStorageValue(cid, 21103, getTableMove(attacker, spellName).f)
                  setPlayerStorageValue(cid, 21104, getCreatureOutfit(attacker).lookType)
                  setPlayerStorageValue(cid, 21105, value)
                  if spellName == "Rollout" then
                     doRolloutReflected(cid, doCorrectString(getCreatureName(attacker)))
                  end
                  return false
               end
            end
        end 
        
        if getCreatureName(cid) == "Kangaskhan" and math.random(1, 100) < 25 and isMega(cid) then
           docastspell(cid, "Groundshock", 0, 0)
        end
            
    if value >= getCreatureHealth(cid) then
        if isSummon(cid) then
            if isInArray({"Aggron", "Sudowoodo", "Mega Aggron"}, getCreatureName(cid)) then
               doCreatureAddHealth(cid, -(getCreatureHealth(cid)-1))
               docastspell(cid, "Sturdy", 0, 0)
               if isSummon(cid) then doSendLifePokeToOTC(getCreatureMaster(cid)) end
               return false
            end
        end
        doKillWildPoke(attacker, cid)
        return false
    end
        --------------Passiva Lifesteal Clobat------------
          if isInArray({"crobat", "shiny crobat"}, getCreatureName(attacker):lower())and (combat == 128 or combat == 1) and spellNameFromAttacker == -1 then                    
            doCreatureAddHealth(attacker, math.floor(value))
            doSendAnimatedText(getThingPos(attacker), "+ "..math.floor(value), 30)
          end
        --------------------------------------------
    doCreatureAddHealth(cid, -value)
    doCastPassive(cid)
    
    if not isSummon(cid) and not isMega(cid) then -- virar mega
       checkChenceToMega(cid)
    end
    
    if isSummon(cid) then
        -- otclient life
        doSendLifePokeToOTC(getCreatureMaster(cid))
        -- otclient life
    end
end    

    return false
end

function getMasterLevel(cid)
    if isSummon(cid) then
       return getPlayerLevel(getCreatureMaster(cid))
    end
    return 0
end

 

Editado por Michyalex
Link para o comentário
Compartilhar em outros sites

Agora, Michyalex disse:

Aqui persiste o error de voltar para melee en spells que tem "addEvent" 

  Mostrar conteúdo oculto

[19/12/2016 04:11:10] Entrando no escopo...

[19/12/2016 04:11:10] Valor da storage: Earthquake

[19/12/2016 04:11:10] Pokemon atacante: Shiny Onix

[19/12/2016 04:11:10] Pokemon defensor: Golem

[19/12/2016 04:11:10] Entrando no escopo de MAGIA...

[19/12/2016 04:11:10] Valor final: -980.1

[19/12/2016 04:11:10] Entrando no escopo...

[19/12/2016 04:11:10] Valor da storage: melee

[19/12/2016 04:11:10] Pokemon atacante: Shiny Onix

[19/12/2016 04:11:10] Pokemon defensor: Golem

[19/12/2016 04:11:10] Entrando no escopo de MELEE...

[19/12/2016 04:11:10] Value antes de getEffectvineCombat: -822

[19/12/2016 04:11:10] Value depois de getEffectvineCombat: -822

[19/12/2016 04:11:10] Dano fica: -1644

[19/12/2016 04:11:11] Entrando no escopo...

[19/12/2016 04:11:11] Valor da storage: melee

[19/12/2016 04:11:11] Pokemon atacante: Shiny Onix

[19/12/2016 04:11:11] Pokemon defensor: Golem

[19/12/2016 04:11:11] Entrando no escopo de MELEE...

[19/12/2016 04:11:11] Value antes de getEffectvineCombat: -992

[19/12/2016 04:11:11] Value depois de getEffectvineCombat: -992

[19/12/2016 04:11:11] Dano fica: -1984

[19/12/2016 04:11:11] Entrando no escopo...

[19/12/2016 04:11:11] Valor da storage: melee

[19/12/2016 04:11:11] Pokemon atacante: Shiny Onix

[19/12/2016 04:11:11] Pokemon defensor: Golem

[19/12/2016 04:11:11] Entrando no escopo de MELEE...

[19/12/2016 04:11:11] Value antes de getEffectvineCombat: -300

[19/12/2016 04:11:11] Value depois de getEffectvineCombat: -300

[19/12/2016 04:11:11] Dano fica: -600

[19/12/2016 04:11:12] Entrando no escopo...

[19/12/2016 04:11:12] Valor da storage: Rock Throw

[19/12/2016 04:11:12] Pokemon atacante: Golem

[19/12/2016 04:11:12] Pokemon defensor: Shiny Onix

[19/12/2016 04:11:12] Entrando no escopo de MAGIA...

[19/12/2016 04:11:12] Valor final: -515.97

[19/12/2016 04:11:12] Entrando no escopo...

[19/12/2016 04:11:12] Valor da storage: melee

[19/12/2016 04:11:12] Pokemon atacante: Shiny Onix

[19/12/2016 04:11:12] Pokemon defensor: Golem

[19/12/2016 04:11:12] Entrando no escopo de MELEE...

[19/12/2016 04:11:12] Value antes de getEffectvineCombat: -1229

[19/12/2016 04:11:12] Value depois de getEffectvineCombat: -1229

[19/12/2016 04:11:12] Dano fica: -2458

 

 

se o erro persiste é pq vc colocou mal o codigo q ele falou  algumas tem o dano (0, 0)

tem que colocar o codigo encima das que falam (min, max)

Link para o comentário
Compartilhar em outros sites

Primeiramente, troque:

addEvent(removeSpell, 1500, cid)

por:

setPlayerStorageValue(cid, 21102, -1)addEvent(removeSpell, 10 * 1000, cid)

 

O Miracle Eye apresenta um problema semelhante aquele enfrentado inicialmente neste tópico - mais necessariamente, em spells com addEvent. 

Peço que teste, com a mudança acima, apenas spells instantâneas. Miracle Eye -> Spell. Espere um pouco. Teste de novo. 

Quando estiver funcionando adequadamente neste tipo de spell, partiremos para a solução das demais.

Editado por zipter98
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...