What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Can't get mulligan for specific matchup

Botosaurus

New Member
Joined
May 2, 2015
Messages
34
Reaction score
1
Hey guys,

I wonder if one of you know how to fix this error I keep getting when I try to make some custom rules for mulligan.

This is the error I keep getting
[Mulligan] An exception occurred: System.MissingMemberException: 'MulliganData' object has no attribute 'userClass'
à IronPython.Runtime.Binding.PythonGetMemberBinder.FastErrorGet`1.GetError(CallSite site, TSelfType target, CodeContext context)
à System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
à Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
à Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
à Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
à IronPython.Compiler.PythonCallTargets.OriginalCallTarget0(PythonFunction function)
à System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
à _Scripting_(Object[] )
à HREngine.Bots.DefaultRoutine.GetCondition(String expression, IEnumerable`1 variables) dans c:\Users\<USERNAME>\Downloads\Hearthbuddy 0.3.968.150\Routines\DefaultRoutine\DefaultRoutine.cs:ligne 220

And this is what I try to make functionning in the defaultroutine.cs
Code:
mulliganData.userClass == TAG_CLASS.DRUID and mulliganData.OpponentClass == TAG_CLASS.WARLOCK
This is just an example it happens for every class, but I can't make it work. I assume I have to tweak a little bit the MulliganLogic function inside the default.cs but I can't find where the error come from.

Thanks !
 
Last edited:
Back
Top