Core/Scripts: Fixes ValidateSpellScripts, and type mismatch of parameters

This commit is contained in:
hondacrx
2018-01-13 23:17:54 -05:00
parent a96e26329f
commit bde833d452
4 changed files with 36 additions and 8 deletions
+5 -5
View File
@@ -74,8 +74,8 @@ namespace Scripts.Spells.Items
public const uint StrengthOfTheTaunkaHero = 71561; // +700 Strength
//Defibrillate
public const int GoblinJumperCablesFail = 8338;
public const int GoblinJumperCablesXlFail = 23055;
public const uint GoblinJumperCablesFail = 8338;
public const uint GoblinJumperCablesXlFail = 23055;
//Desperatedefense
public const uint DesperateRage = 33898;
@@ -898,9 +898,9 @@ namespace Scripts.Spells.Items
// 8342 - Defibrillate (Goblin Jumper Cables) have 33% chance on success
// 22999 - Defibrillate (Goblin Jumper Cables XL) have 50% chance on success
// 54732 - Defibrillate (Gnomish Army Knife) have 67% chance on success
[Script("spell_item_goblin_jumper_cables", 33, SpellIds.GoblinJumperCablesFail)]
[Script("spell_item_goblin_jumper_cables_xl", 50, SpellIds.GoblinJumperCablesXlFail)]
[Script("spell_item_gnomish_army_knife", 67, 0)]
[Script("spell_item_goblin_jumper_cables", 33u, SpellIds.GoblinJumperCablesFail)]
[Script("spell_item_goblin_jumper_cables_xl", 50u, SpellIds.GoblinJumperCablesXlFail)]
[Script("spell_item_gnomish_army_knife", 67u, 0u)]
class spell_item_defibrillate : SpellScript
{
public spell_item_defibrillate(uint chance, uint failSpell)